onreconnecting method

void onreconnecting(
  1. ReconnectingCallback callback
)

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

Implementation

void onreconnecting(ReconnectingCallback callback) {
  _reconnectingCallbacks.add(callback);
}