onreconnected method

dynamic onreconnected(
  1. ReconnectedCallback callback
)

Registers a handler that will be invoked when the connection successfully reconnects.

callback: The handler that will be invoked when the connection successfully reconnects.

Implementation

onreconnected(ReconnectedCallback callback) {
  _reconnectedCallbacks.add(callback);
}