receiveDeserializedBase

inline suspend fun <T> WebSocketSession.receiveDeserializedBase(converter: WebsocketContentConverter, charset: Charset): Any?

Dequeues a frame and deserializes it to the type T using converter. May throw WebsocketDeserializeException if the received frame type is not Frame.Text or Frame.Binary. In this case, WebsocketDeserializeException.frame contains the received frame. May throw ClosedReceiveChannelException if a channel was closed

Parameters

converter

The WebSocket converter

charset

Response charset