def on_message(self, message):
"""Called when a websocket client sends a message."""
# print the message to the console
print("client sent: {!r}".format(message))
# respond to the message
self.write_message("Hello, client!")
评论列表
文章目录