WebSocket send ping to server every 10 sec

This commit is contained in:
Shaun 2016-02-01 11:40:20 +11:00
parent e4f4900499
commit 0aa4ffd1bc

View file

@ -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