whenConnected

open override fun whenConnected(connectionTimeout: Long, connectionFailed: suspend (throwable: Throwable) -> Unit, connected: suspend (connectionId: String) -> Unit)

When connected to the socket.