onConnectionError method
void
onConnectionError(
- void callback(
- ConnectionError? error
Callback that indicates either:
- An error message has been received from Pusher, or
- An error has occurred in the client library.
Implementation
void onConnectionError(void Function(ConnectionError? error) callback) {
_onConnectionError = callback;
}