Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket 使用类型错误 #2

Open
jjz opened this issue Jul 13, 2019 · 0 comments
Open

Websocket 使用类型错误 #2

jjz opened this issue Jul 13, 2019 · 0 comments

Comments

@jjz
Copy link

jjz commented Jul 13, 2019

Websocket有自己的消息类型,ping 和 pong ,而ping的消息是方在text里面的。

*  %x0 denotes a continuation frame

      *  %x1 denotes a text frame

      *  %x2 denotes a binary frame

      *  %x3-7 are reserved for further non-control frames

      *  %x8 denotes a connection close

      *  %x9 denotes a ping

      *  %xA denotes a pong

https://tools.ietf.org/html/rfc6455
而pong的消息也需要放在text里面

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant