We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我尝试在Server端使用WebSocektChannel的close()方法主动关闭连接,但这个方法没有其他参数,所以我如何通知客户端连接关闭的原因?
The text was updated successfully, but these errors were encountered:
你是想使用ws协议的CLOSE类型帧带上原因吧,可以使用ws.send(reason, WS_OPCODE_CLOSE)后再调用close
ws.send(reason, WS_OPCODE_CLOSE)
Sorry, something went wrong.
No branches or pull requests
我尝试在Server端使用WebSocektChannel的close()方法主动关闭连接,但这个方法没有其他参数,所以我如何通知客户端连接关闭的原因?
The text was updated successfully, but these errors were encountered: