LiveConnection

interface LiveConnection

Scoped Live primary, sideband or fork WebSocket. Device audio and media processing belong to the caller.

Properties

Link copied to clipboard
abstract val events: Flow<LiveEvent>

Single-consumer event stream. Stopping collection closes the socket; service errors remain protocol events.

Functions

Link copied to clipboard
abstract suspend fun close()

Closes this socket. Closing a sideband does not hang up the underlying session.

Link copied to clipboard
abstract suspend fun send(event: LiveEvent)

Sends one client event. Wait for session.started before primary/fork audio or commands.