ReadonlyopenTrue when the underlying connection is open and will accept calls.
OptionalcloseClose the underlying connection (best-effort, idempotent). Used when the server retires a session out from under a connected client — a resume takeover, or a sandbox teardown — so the client gets a real close to react to instead of a socket that silently stops answering.
Optionalreason: stringPush a session event (JSON text frame) to the client.
Send a single PCM16 audio chunk (raw binary frame) to the client.
Signal that TTS audio is complete (JSON text frame).
Typed interface for pushing session events to a connected client.
Events (
event,playAudioDone) send JSON text frames. Audio chunks (playAudioChunk) send raw PCM16 binary frames.