SignalingSession

One end of an open signaling exchange. Carries messages in both directions until close is called or the peer disconnects.

Properties

Link copied to clipboard
abstract val incoming: Flow<SignalingMessage>

Messages sent by the other endpoint, in arrival order.

Functions

Link copied to clipboard
abstract suspend fun close()

Close the session. Idempotent.

Link copied to clipboard
abstract suspend fun send(message: SignalingMessage)

Send a message to the other endpoint. Suspends until accepted locally.