A convenience API for managing and accessing an individual stream.

Hierarchy

  • Stream

Important

  • Assigns the stream to a storage node.

    Returns

    a resolved promise if (1) stream was assigned to storage node and (2) the storage node acknowledged the assignment within timeout, otherwise rejects. Notice that is possible for this promise to reject but for the storage node assignment to go through eventually.

    Parameters

    • storageNodeAddress: string
    • waitOptions: {
          timeout?: number;
      } = {}

      control how long to wait for storage node to pick up on assignment

      • Optional timeout?: number

    Returns Promise<void>

Other

  • Deletes the stream.

    Remarks

    Stream instance should not be used afterwards.

    Returns Promise<void>

  • Attempts to detect and update the config metadata of the stream by performing a resend.

    Remarks

    Only works on stored streams.

    Returns

    be mindful that in the case of there being zero messages stored, the returned promise will resolve even though fields were not updated

    Returns Promise<void>

  • Updates the metadata of the stream by merging with the existing metadata.

    Parameters

    Returns Promise<void>

Generated using TypeDoc