onreconnecting abstract method

void onreconnecting(
  1. void callback(
    1. Object? error
    )
)

Registers a handler that will be invoked when the connection starts reconnecting.

callback The handler that will be invoked when the connection starts reconnecting. Optionally receives a single argument containing the error that caused the connection to start reconnecting (if any).

Implementation

void onreconnecting(void Function(Object? error) callback);