onWebsocketDisconnect method
- @protected
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();
}
}