async fn feed_ws_response(
ws: &mut WebSocket,
resp: WebSocketResponse,
) -> Result<(), Error>Expand description
Queues a single WebSocketResponse on the provided WebSocket without flushing it, so
the caller must flush before it waits on anything but the socket.
The queue stays bounded. Once it exceeds tungstenite’s write_buffer_size it is written to
the socket, and a socket that is not writable makes the next call wait.