blocking

abstract fun blocking(uri: Uri, headers: <Error class: unknown class> = 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.