onConnect

abstract fun onConnect(handler: suspend () -> Unit)

Register a handler for connection events. Called when the socket successfully connects.

Parameters

handler

Suspend function called on connection