We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abe41a9 + 080f965 commit 4a9a31cCopy full SHA for 4a9a31c
livechat/utils/ws_client.py
@@ -63,6 +63,10 @@ def open(self,
63
keep_alive(bool): Bool which states if connection should be kept, by default sets to `True`.
64
response_timeout (int or float): timeout (in seconds) to wait for the response,
65
by default sets to 3 seconds. '''
66
+ if self.sock and self.sock.connected:
67
+ logger.warning(
68
+ 'Cannot open new websocket connection, already connected.')
69
+ return
70
self.response_timeout = response_timeout
71
run_forever_kwargs = {
72
'sslopt': {
0 commit comments