onConnect

fun onConnect(block: () -> Unit)(source)

Registers a callback to be invoked when the new server session connected.