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

WebSocketClient连接C#的WebSocket生成Key有问题 #118

Closed
Leewx820 opened this issue Oct 16, 2023 · 1 comment
Closed

WebSocketClient连接C#的WebSocket生成Key有问题 #118

Leewx820 opened this issue Oct 16, 2023 · 1 comment

Comments

@Leewx820
Copy link

image
这个地方内部调用生成了长度为32的字符串,导致连接C#的WebSocket服务无法成功,改成16位长度就可以了,这个是啥原因呢

@winddriver
Copy link
Owner

感谢反馈,我查询了WebSocket的RFC协议描述,Sec-WebSocket-Key的确应该只有16个字节,已经修正

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

2 participants