@s2-dev/streamstore - v0.22.0
    Preparing search index...

    Class S2Streams

    Basin-scoped helper for listing and configuring streams.

    Access via S2Basin.streams. Methods inherit the basin's retry configuration.

    Index

    Constructors

    Methods

    • List all streams in the basin with automatic pagination. Returns a lazy async iterable that fetches pages as needed.

      Parameters

      • includeDeleted: boolean = false

        Include deleted streams (default: false)

      • Optionalargs: ListAllStreamsInput

        Optional filtering options: prefix to filter by name prefix, limit for max results per page

      • Optionaloptions: S2RequestOptions

      Returns AsyncIterable<StreamInfo>

      for await (const stream of basin.streams.listAll({ prefix: "events-" })) {
      console.log(stream.name);
      }