-
Notifications
You must be signed in to change notification settings - Fork 85
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
How to keep session alive... #67
Comments
It fails with code : Connection closed (1006 - Underlying connection closed) ? |
Connections are automatically persistent. If the connection is severed after 1 minute my best guess is you have a proxy that is severing connections after 1 minute. Code 1006 is ABNORMAL_CLOSE which happens when the underlying TCP connection is severed without a proper closing handshake between the client and server. Please provide more info about your client and server if you require more help troubleshooting. |
Maybe you are because I checked in Fiddler and response return with Header: keep-alive timeout=10 max=100 |
So as I see in FIddler WebSocket connection don't establish Probably I should add some headers for request... |
I am using Open Server for Windows |
In my case I'm receiving Is there a way to set auto-ping seconds or can you show a simple example how could I send ping every 30 seconds? |
@kost-g You can send a periodic ping using something like: $loop->addPeriodicTimer(30, function () use ($conn) {
$conn->send(new Frame('', true, Frame::OP_PING));
}); |
Please explaine how to keep session with server alive more then 1 minute?
The text was updated successfully, but these errors were encountered: