SubscribeQueryParams

data class SubscribeQueryParams(val wantedCollections: List<String>? = null, val wantedDids: List<Did>? = null, val cursor: Long? = null, val maxMessageSizeBytes: Long? = 0, val compress: Boolean? = false, val requireHello: Boolean? = false)

Parameters

wantedCollections

Collections to receive #commit events for. Repeatable. Each value is an exact NSID (app.bsky.feed.post) or a namespace wildcard ending in .* (app.bsky.feed.*). Up to 100 entries; omit for all collections. Applies to commits only.

wantedDids

DIDs to receive events for, across all event kinds. Repeatable, up to 10,000 entries. Omit for all repos.

cursor

Resume point. A value below 1×10¹⁵ is a Jetstream sequence number (cursor=0 replays from the start of the replay window); a value at or above 1×10¹⁵ is read as a v1 unix-microsecond timestamp (backwards compatibility). Replay is bounded to the most recent 36h by default — older cursors clamp to the floor, future cursors start at the live tip. Omit to start live.

maxMessageSizeBytes

Drop any event whose uncompressed JSON exceeds this size. 0 or omitted means no cap.

compress

Set true to opt into Jetstream's legacy custom zstd-dictionary compression (frames arrive as binary WebSocket messages). Kept for v1 compatibility only — prefer RFC 7692 permessage-deflate, which is negotiated automatically. Offering both at once is rejected.

requireHello

Set true to withhold all events until the client sends its first options_update message, so the filter can be set before any data flows.

Constructors

Link copied to clipboard
constructor(wantedCollections: List<String>? = null, wantedDids: List<Did>? = null, cursor: Long? = null, maxMessageSizeBytes: Long? = 0, compress: Boolean? = false, requireHello: Boolean? = false)

Properties

Link copied to clipboard

Set true to opt into Jetstream's legacy custom zstd-dictionary compression (frames arrive as binary WebSocket messages). Kept for v1 compatibility only — prefer RFC 7692 permessage-deflate, which is negotiated automatically. Offering both at once is rejected.

Link copied to clipboard
val cursor: Long?

Resume point. A value below 1×10¹⁵ is a Jetstream sequence number (cursor=0 replays from the start of the replay window); a value at or above 1×10¹⁵ is read as a v1 unix-microsecond timestamp (backwards compatibility). Replay is bounded to the most recent 36h by default — older cursors clamp to the floor, future cursors start at the live tip. Omit to start live.

Link copied to clipboard

Drop any event whose uncompressed JSON exceeds this size. 0 or omitted means no cap.

Link copied to clipboard

Set true to withhold all events until the client sends its first options_update message, so the filter can be set before any data flows.

Link copied to clipboard

Collections to receive #commit events for. Repeatable. Each value is an exact NSID (app.bsky.feed.post) or a namespace wildcard ending in .* (app.bsky.feed.*). Up to 100 entries; omit for all collections. Applies to commits only.

Link copied to clipboard

DIDs to receive events for, across all event kinds. Repeatable, up to 10,000 entries. Omit for all repos.

Functions

Link copied to clipboard