MCPcopy
hub / github.com/tornadoweb/tornado / on_message

Method on_message

tornado/test/websocket_test.py:195–198  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

193 self.open_finished = True
194
195 def on_message(self, message):
196 if not self.open_finished:
197 raise Exception("on_message called before open finished")
198 self.write_message("ok")
199
200
201class ErrorInOpenHandler(TestWebSocketHandler):

Callers

nothing calls this directly

Calls 1

write_messageMethod · 0.45

Tested by

no test coverage detected