MCPcopy Create free account
hub / github.com/EasyIME/PIME / on_message

Method on_message

python/python3/tornado/test/websocket_test.py:63–69  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

61class EchoHandler(TestWebSocketHandler):
62 @gen.coroutine
63 def on_message(self, message):
64 try:
65 yield self.write_message(message, isinstance(message, bytes))
66 except asyncio.CancelledError:
67 pass
68 except WebSocketClosedError:
69 pass
70
71
72class ErrorInOnMessageHandler(TestWebSocketHandler):

Callers

nothing calls this directly

Calls 1

write_messageMethod · 0.45

Tested by

no test coverage detected