2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-09-14 04:23:17 +00:00

AutoReconnect

This commit is contained in:
2022-08-11 21:28:41 +03:00
parent c9ead2dabd
commit 083ea92d3b
10 changed files with 407 additions and 271 deletions

View File

@@ -126,6 +126,8 @@ class WSocket extends ISocket {
}
void close() {
if (state == SocketState.Closed) return;
if (state != SocketState.Closed && state != SocketState.Terminated)
_state = SocketState.Closed;