onError method

Called when an error occurs.

Return the exception to propagate it, or return null to suppress it (the user's onError callback won't fire, but reconnection still proceeds independently).

Implementation

Future<EventFluxException?> onError(EventFluxException exception) async =>
    exception;