onDisconnect

val onDisconnect: () -> Unit

Parameters

onDisconnect

implement this callback to perform logic when the RPC disconnects on connection disconnect