A non-currying variant of withWebSocketAdapter. Takes a WebSocket as an input and returns an async iterable queue that generates values from the WebSocket's "message" events. Automatically marks the queue as sealed when the WebSocket is closed.
Returns
An IterableQueue of MessageEvent generated from the WebSocket's "message" events.
A non-currying variant of withWebSocketAdapter. Takes a WebSocket as an input and returns an async iterable queue that generates values from the WebSocket's "message" events. Automatically marks the queue as sealed when the WebSocket is closed.
Returns
An IterableQueue of MessageEvent generated from the WebSocket's "message" events.
Example