-
Notifications
You must be signed in to change notification settings - Fork 3
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 example code doesn't work #1
Comments
Any information in the webdev console of the browser? |
|
Hello, I have the same issue. Running tcpdump on the server, I see that the message the client sends is received on the server but it does not seem to go any further than that. `12:16:11.957597 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 62) 12:16:12.000125 IP (tos 0x0, ttl 64, id 7222, offset 0, flags [DF], proto TCP (6), length 52) |
I have added a line in WebSocketServer.php in the idle method like so: And this works. The client receives it. |
If anyone happens to stumble across this, the workaround is the following. In file fatfree-core/cli/ws.php do the following changes |
I can connect to the WebSocket server with clients in a terminal and with index.html in a browser. But I can't send or receive messages. In the terminal with the running Websocket server, every minute I see:
2023-10-14 18:22:40 | 4.194 MB | Agent 127.0.0.1:58920 idles
Nothing more.
In the browser:
How to make it work?
The text was updated successfully, but these errors were encountered: