Closed NewOldMax closed 6 years ago
You can create a ping by creating a topic that you publish to periodically.
I think it's little dirty, not?
Yes it is. The next version of Ratchet will support ping/pong, so this is just a temporary solution.
I'm having this same issue. I launch the server from comand line and if i don't publish anything for some time (about 20-30 minutes) i get what looks like a log of all the previous calls on the console and the server just hangs (the process is active, but it doesn't accept connections anymore). Following this suggestion i have made a topic where i publish every 5 minutes. Now it lasts some hours (about 6-7) but then the same thing happens eventually.
Is it possible to know what is causing the issue? I don't think a "keep alive" mechanism should be needed at all in the first place
I am working on a windows 10 machine using PHP 5.6 and dev-master version of the bundle (but it happened even with the latest release)
Fixed in v0.3.0
Hi! I use your bundle and autobahnjs to create real-time web app. All works fine, but after some idle time connection between client and server lost. I get on frontend:
And on backend:
After this subscription doesn't exists.
Is there a way to avoid this without resubscribe? For example, send some pings from server to client.