blocking

abstract fun blocking(uri: Uri, headers: Headers = emptyList()): WsClient

Provides a client-side WsClient connected to a remote Websocket. This is a blocking API, so accessing the sequence of "received" messages will block on iteration until all messages are received (or the socket is closed). This call will also block while connection happens.