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

Method send_client_event

pywebio/session/coroutinebased.py:136–146  ·  view source on GitHub ↗

向会话发送来自用户浏览器的事件️ :param dict event: 事件️消息

(self, event)

Source from the content-addressed store, hash-verified

134 return await WebIOFuture()
135
136 def send_client_event(self, event):
137 """向会话发送来自用户浏览器的事件️
138
139 :param dict event: 事件️消息
140 """
141 coro_id = event['task_id']
142 coro = self.coros.get(coro_id)
143 if not coro:
144 logger.error('coro not found, coro_id:%s', coro_id)
145 return
146 self._step_task(coro, event)
147
148 def get_task_commands(self):
149 msgs = self.unhandled_task_msgs

Callers

nothing calls this directly

Calls 2

_step_taskMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected