From 0aa4ffd1bc56f1a3261ef52742dfa51fd7033416 Mon Sep 17 00:00:00 2001 From: Shaun Date: Mon, 1 Feb 2016 11:40:20 +1100 Subject: [PATCH] WebSocket send ping to server every 10 sec --- resources/lib/websocket_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/websocket_client.py b/resources/lib/websocket_client.py index da59da83..f99c5212 100644 --- a/resources/lib/websocket_client.py +++ b/resources/lib/websocket_client.py @@ -301,7 +301,7 @@ class WebSocket_Client(threading.Thread): while not monitor.abortRequested(): - self.client.run_forever() + self.client.run_forever(ping_interval = 10) if self.stopWebsocket: break