setConnectionCallback

fun setConnectionCallback(onConnected: () -> Unit = {}, onDisconnected: () -> Unit = {})