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

2024-5-23 最新版本,WebSocketClient 连上后会立即收到Close,试了几个ws服务都这样 #133

Open
gmxyb opened this issue Jun 6, 2024 · 2 comments

Comments

@gmxyb
Copy link

gmxyb commented Jun 6, 2024

比如:ws://124.222.224.186:8800

@windflee
Copy link

windflee commented Jun 8, 2024

http server 也有这个问题,客户端连接上后马上就close了,换回旧版本就正常了。

@gmxyb
Copy link
Author

gmxyb commented Jul 29, 2024

知道是啥问题了,ws客户端需要设置非0掩码才行。

根据ws规范,客户端向服务端发送消息必须使用掩码,建议作者可以在
Net.CrossWebSocketClient.pas 代码 TCrossWebSocket.Create() 中设置 FMaskingKey为非0值。

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