WebSocket send ping to server every 10 sec
This commit is contained in:
parent
e4f4900499
commit
0aa4ffd1bc
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ class WebSocket_Client(threading.Thread):
|
||||||
|
|
||||||
while not monitor.abortRequested():
|
while not monitor.abortRequested():
|
||||||
|
|
||||||
self.client.run_forever()
|
self.client.run_forever(ping_interval = 10)
|
||||||
if self.stopWebsocket:
|
if self.stopWebsocket:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue