Package-level declarations

Types

Link copied to clipboard

Wire format used by the Kodio Ktor helpers.

Functions

Link copied to clipboard

Decode the AudioFlowWireFormat.MAGIC-prefixed binary format header.

Link copied to clipboard

Encode the AudioFlowWireFormat.MAGIC-prefixed binary format header.

Link copied to clipboard
suspend fun WebSocketSession.receiveAudioFlow(): AudioFlow

Read an AudioFlow from an open server-side WebSocketSession.

Link copied to clipboard
suspend fun HttpClient.receiveAudioFlowFromWebSocket(urlString: String, request: HttpRequestBuilder.() -> Unit = {}): AudioFlow

Receive an AudioFlow from a remote WebSocket endpoint.

Link copied to clipboard
suspend fun AudioFlow.sendInto(session: WebSocketSession)

Stream this AudioFlow into an already-open WebSocketSession.

Link copied to clipboard
suspend fun AudioFlow.sendOverWebSocket(client: HttpClient, urlString: String, request: HttpRequestBuilder.() -> Unit = {})

Stream this AudioFlow over a WebSocket on the given client.