MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / send_client_data

Method send_client_data

pywebio/platform/adaptor/ws.py:193–200  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

191 self.session = None
192
193 def send_client_data(self, data):
194 if isinstance(data, bytes):
195 event = deserialize_binary_event(data)
196 else:
197 event = json.loads(data)
198 if event is None:
199 return
200 self.session.send_client_event(event)
201
202 def notify_connection_lost(self):
203 logger.debug("WebSocket closed")

Callers 3

websocket_endpointFunction · 0.95
wshandleFunction · 0.95
on_messageMethod · 0.80

Calls 2

deserialize_binary_eventFunction · 0.85
send_client_eventMethod · 0.45

Tested by

no test coverage detected