receiveWebSocketEvents

inline suspend fun <T> DefaultClientWebSocketSession.receiveWebSocketEvents(crossinline receiver: suspend (ClientWebSocketEvent<T>) -> Unit): Job

Dequeues frames containing ClientWebSocketEvent and tries to deserialize it. Will retry if something went wrong while receiving a frame.

See also