This commit is contained in:
qqqlyx 2019-04-03 17:46:48 +08:00
parent 455a1851a7
commit b8c648b432

View File

@ -45,13 +45,16 @@ class WebsocketClient(object):
self.proxy_host = None self.proxy_host = None
self.proxy_port = None self.proxy_port = None
self.ping_interval = 60 # seconds
# For debugging # For debugging
self._last_sent_text = None self._last_sent_text = None
self._last_received_text = None self._last_received_text = None
def init(self, host: str, proxy_host: str = "", proxy_port: int = 0, ping_interval: int = 60): def init(self, host: str, proxy_host: str = "", proxy_port: int = 0, ping_interval: int = 60):
"""""" """
:param ping_interval: unit: seconds, type: int
"""
self.host = host self.host = host
self.ping_interval = ping_interval # seconds self.ping_interval = ping_interval # seconds