dispose method

  1. @override
void dispose()
override

Cancels websocket stream subscriptions and disposes localStorage

Implementation

@override
void dispose() {
  localStorage.dispose();
  callbacks = DOOCallbacks();
  _presenceResetTimer?.cancel();
  _publishPresenceTimer?.cancel();
  _subscriptions.forEach((subs) {
    subs.cancel();
  });
}