onreconnected method
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);
}