closeSocket method
Implementation
Future<void> closeSocket(url) async {
return webSockets[url]?.sink.close().timeout(const Duration(seconds:3), onTimeout: () {
print("timeout while trying to close socket $url");
});
}
Future<void> closeSocket(url) async {
return webSockets[url]?.sink.close().timeout(const Duration(seconds:3), onTimeout: () {
print("timeout while trying to close socket $url");
});
}