onConnectionError method

void onConnectionError(
  1. void callback(
    1. 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;
}