BotSession
Public TypeScript members of BotSession.
Generated from the pinned SDK source. Use the matching installation. Each source link points to this baseline.
Compose Effect operations with yield* inside a scoped workflow. Properties expose sub-clients and state.
open
static open(
stream: BotEventStreamFactory,
options: BotSessionOptions = {},
): Effect.Effect<BotSession, SoulFireOperationError, Scope.Scope>state
get state(): BotSessionStateevents
Subscribes lazily; slow readers lose the oldest buffered events.
events(): Stream.Stream<BotEvent, SoulFireOperationError>waitFor
waitFor(
predicate: (event: BotEvent, state: BotSessionState) => boolean,
options: { readonly timeoutMs?: number } = {},
): Effect.Effect<BotEvent, SoulFireOperationError>once
once(
eventCase: BotEvent["event"]["case"],
options?: { readonly timeoutMs?: number },
): Effect.Effect<BotEvent, SoulFireOperationError>close
close(): Effect.Effect<void>How is this page?
Last updated on
