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

Method next_client_event

pywebio/session/coroutinebased.py:131–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

129 self._on_task_command(self)
130
131 async def next_client_event(self):
132 # 函数开始不需要判断 self.closed()
133 # 如果会话关闭,对 get_current_session().next_client_event() 的调用会抛出SessionClosedException
134 return await WebIOFuture()
135
136 def send_client_event(self, event):
137 """向会话发送来自用户浏览器的事件️

Callers 1

callback_coroMethod · 0.95

Calls 1

WebIOFutureClass · 0.85

Tested by

no test coverage detected