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
response = {"popup" : "Hello, client!"}
m = json.dumps(response)
self.write_message(m)
评论列表
文章目录