closeAllSockets method
Implementation
Future<void> closeAllSockets() async {
try {
await Future.wait(webSockets.keys.map((url) => closeSocket(url)));
} catch (e) {
print(e);
}
}
Future<void> closeAllSockets() async {
try {
await Future.wait(webSockets.keys.map((url) => closeSocket(url)));
} catch (e) {
print(e);
}
}