Skip to content

ConversationStream

Defined in: sdks/node/dist/runtime/public/streams.d.ts:56

Conversations as the client joins or creates them.

[asyncIterator](): AsyncIterableIterator<Conversation>

Defined in: sdks/node/dist/runtime/streams/reader.d.ts:26

AsyncIterableIterator<Conversation>

ReaderStream.[asyncIterator]


end(): Promise<void>

Defined in: sdks/node/dist/runtime/streams/reader.d.ts:41

Promise<void>

ReaderStream.end


next(): Promise<IteratorResult<Conversation, any>>

Defined in: sdks/node/dist/runtime/streams/reader.d.ts:33

Reads run one at a time. For messages, the next read acknowledges the prior message. Await app processing before requesting the next message. Sharing this iterator with an app queue does not extend the acknowledgement boundary.

Promise<IteratorResult<Conversation, any>>

ReaderStream.next


onValue(callback): Promise<void>

Defined in: sdks/node/dist/runtime/streams/reader.d.ts:39

Await each callback before the next read. For messages, that read acknowledges the prior message. Await all processing in the callback. Work sent to an app queue or an unawaited task can continue after acknowledgement.

(value) => void | Promise<void>

Promise<void>

ReaderStream.onValue


ready(): Promise<void>

Defined in: sdks/node/dist/runtime/streams/reader.d.ts:27

Promise<void>

ReaderStream.ready


return(): Promise<IteratorResult<Conversation, any>>

Defined in: sdks/node/dist/runtime/streams/reader.d.ts:40

Promise<IteratorResult<Conversation, any>>

ReaderStream.return