init

suspend fun init(onReady: suspend () -> Unit = {})

Initializes (if not already initialized) the WebSocket connection.

Parameters

onReady

callback invoked after the connection is successfully opened