keep-alive connection does not work
Hello, I tried to use elephant.io v2 client as a PHP client that can establish keep-alive connection with my nodejs server thru websocket protocol, but connection closes automatically after some period of inactivity. Is there any possibility to open and support keep-alive connection? Please help.
Thank you for your reply.
Could you provide sample code you execute?
And we can look at that about keep-alive connection.
I have same question, how to get a keep-alive connection?
Have you tried to call the keepAlive method (only on v1 or v2) periodically ? It's currently the only way, as PHP doesn't really have any way to make an async ping in the same request...
Have you tried to call the
keepAlivemethod (only on v1 or v2) periodically ? It's currently the only way, as PHP doesn't really have any way to make an async ping in the same request...
I installed package with composer and I find that the code is not same with the code in github. I checkout from github and copy to my project, now is ok. Very Very Thank You. My Best Wishes!