通过网络套接字将来自Tornado的压缩/二进制数据发送回客户端意味着什么?
File "/usr/lib64/python2.7/site-packages/websocket/_abnf.py", line 380, in extract
raise WebSocketPayloadException("cannot decode: " + repr(frame.data))
websocket._exceptions.WebSocketPayloadException: cannot decode: "x\x9c\xc5\xcd
最佳答案
这意味着在self.write_message()调用中设置binary = True选项
关于python - 带有Tornado和websocket python连接的WebSocketPayloadException,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30602557/