val onReconnect: () -> Unit
implement this callback to perform logic when the RPC has reconnected after connection disconnect