MCPcopy Create free account
hub / github.com/sammchardy/python-binance / handle_message

Function handle_message

tests/test_threaded_socket_manager.py:71–78  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

69 msg_received = False
70
71 def handle_message(msg):
72 nonlocal error_received, msg_received
73 if msg.get("e") == "error":
74 error_received = True
75 logger.debug("Received WebSocket error: %s", msg.get('m', 'Unknown error'))
76 return
77 msg_received = True
78 logger.debug("Received valid message")
79
80 try:
81 logger.debug("Starting ThreadedWebsocketManager")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…