onReconnect method
void
onReconnect(
- void callback()
Called when the WebSocket reconnects after a dropped connection.
Implementation
void onReconnect(void Function() callback) {
_onReconnect = callback;
}