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

Method send_task_command

pywebio/session/coroutinebased.py:121–129  ·  view source on GitHub ↗

向会话发送来自协程内的消息 :param dict command: 消息

(self, command)

Source from the content-addressed store, hash-verified

119 self.close()
120
121 def send_task_command(self, command):
122 """向会话发送来自协程内的消息
123
124 :param dict command: 消息
125 """
126 if self.closed():
127 raise SessionClosedException()
128 self.unhandled_task_msgs.append(command)
129 self._on_task_command(self)
130
131 async def next_client_event(self):
132 # 函数开始不需要判断 self.closed()

Callers 1

_on_task_finishMethod · 0.95

Calls 3

appendMethod · 0.80
closedMethod · 0.65

Tested by

no test coverage detected