Interface: SubscriptionOptions
Defined in: src/types/interfaces/event-stream.interface.ts:153
Subscription options for firehose.
Properties
cursor?
readonlyoptionalcursor:number
Defined in: src/types/interfaces/event-stream.interface.ts:169
Cursor for resuming subscription.
Remarks
Sequence number to resume from. If omitted, starts from latest.
Use getCurrentCursor() to get last processed sequence.
filter?
readonlyoptionalfilter:object
Defined in: src/types/interfaces/event-stream.interface.ts:178
Collection filters.
collections?
readonlyoptionalcollections: readonlyNSID[]
Collections to include (NSIDs).
Example
["pub.chive.preprint.submission", "pub.chive.review.comment"]
Remarks
If provided, only events for these collections are emitted. Reduces network traffic and processing overhead.
relay
readonlyrelay:string
Defined in: src/types/interfaces/event-stream.interface.ts:160
Relay WebSocket URL.
Remarks
URL of the AT Protocol relay (e.g., "wss://bsky.network").