return if websocket open
This commit is contained in:
		| @ -181,6 +181,9 @@ ws.on("close", (event: CloseEvent) => { | ||||
|           }/${maxReconnectAttempts}` | ||||
|         ); | ||||
|         ws = reconnect(ws); | ||||
|         if (ws.readyState === WebSocket.OPEN) { | ||||
|           return; | ||||
|         } | ||||
|         reconnectAttempts++; | ||||
|       }, delay); | ||||
|     } else { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user