whenConnected

abstract fun whenConnected(connectionTimeout: Long = DEFAULT_SOCKET_TIMEOUT, connectionFailed: suspend (throwable: Throwable) -> Unit = {}, connected: suspend (connectionId: String) -> Unit)

When connected to the socket.