MCPcopy Create free account
hub / github.com/danpaquin/coinbasepro-python / _disconnect

Method _disconnect

cbpro/websocket_client.py:109–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 self.on_message(msg)
108
109 def _disconnect(self):
110 try:
111 if self.ws:
112 self.ws.close()
113 except WebSocketConnectionClosedException as e:
114 pass
115 finally:
116 self.keepalive.join()
117
118 self.on_close()
119
120 def close(self):
121 self.stop = True # will only disconnect after next msg recv

Callers 2

_goMethod · 0.95
closeMethod · 0.95

Calls 2

on_closeMethod · 0.95
closeMethod · 0.80

Tested by

no test coverage detected