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

Method on_message

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

Source from the content-addressed store, hash-verified

66class EchoHandler(TestWebSocketHandler):
67 @gen.coroutine
68 def on_message(self, message):
69 try:
70 yield self.write_message(message, isinstance(message, bytes))
71 except asyncio.CancelledError:
72 pass
73 except WebSocketClosedError:
74 pass
75
76
77class ErrorInOnMessageHandler(TestWebSocketHandler):

Callers

nothing calls this directly

Calls 1

write_messageMethod · 0.45

Tested by

no test coverage detected