UnboundedWsListenerFlowAdapter
An adapter similar to WebSocketListenerFlowAdapter, but with an unlimited buffer and non-suspending callback functions. This is useful for bridging implementations that do not support backpressure (like the browser WebSocket API).
This implementation does not support partial messages.
Properties
Functions
Sends a WebSocketFrame.Binary frame to the incomingFrames flow.
Sends a WebSocketFrame.Close to the incomingFrames flow, and completes it normally.
Fails the incomingFrames flow with a WebSocketException with the given message.
Fails the incomingFrames flow with a WebSocketException with the given error as cause.
Sends a WebSocketFrame.Ping frame to the incomingFrames flow.
Sends a WebSocketFrame.Pong frame to the incomingFrames flow.
Sends a WebSocketFrame.Text frame to the incomingFrames flow.