close method
Closes all WebSocket connections and clears the session data.
Implementation
Future close() async {
for (var client in session.getAllClients().values) {
client.socket.close();
}
session.clear();
}
Closes all WebSocket connections and clears the session data.
Future close() async {
for (var client in session.getAllClients().values) {
client.socket.close();
}
session.clear();
}