sendOverWebSocket
suspend fun AudioFlow.sendOverWebSocket(client: HttpClient, urlString: String, request: HttpRequestBuilder.() -> Unit = {})
Stream this AudioFlow over a WebSocket on the given client.
The client must have the WebSockets plugin installed. Sends the format header first, then one binary frame per audio chunk, then closes the socket cleanly.
Parameters
client
A HttpClient with the WebSockets plugin installed.
urlString
The full WebSocket URL (e.g. "ws://host:port/audio").
request
Optional block to customise the WebSocket handshake (headers etc.).