onWebsocketDisconnect method

  1. @protected
void onWebsocketDisconnect()
inherited

The websocket's disconnect handler.

Closes all notification dispatchers.

Implementation

@protected
void onWebsocketDisconnect() {
  final List<WebsocketNotifier> notifiers = _notifiers.values.toList(growable: false);
  _notifiers.clear();
  for (final WebsocketNotifier notifier in notifiers) {
    notifier.close();
  }
}