whenConnected

abstract fun whenConnected(connectionTimeout: Long = DEFAULT_SOCKET_TIMEOUT, connected: suspend (connectionId: String) -> Unit)

When connected to the socket.