getActiveSessions method

  1. @override
Map<String, SessionData> getActiveSessions()
override

Implementation

@override
Map<String, SessionData> getActiveSessions() {
  _checkInitialized();

  Map<String, SessionData> activeSessions = {};
  sessions.getAll().forEach((session) {
    activeSessions[session.topic] = session;
  });

  return activeSessions;
}