resetSessionsAndClients static method

Future<void> resetSessionsAndClients(
  1. String sessionKey
)

Implementation

static Future<void> resetSessionsAndClients(String sessionKey) async {
  await _unrestoredInstance;
  _clients.clear();
  _sessionKey = sessionKey;
  await storage.write(key: _sessionKey, value: json.encode([]));
}