Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

keep-alive connection does not work #189

Open
moofik opened this issue May 6, 2019 · 4 comments
Open

keep-alive connection does not work #189

moofik opened this issue May 6, 2019 · 4 comments

Comments

@moofik
Copy link

moofik commented May 6, 2019

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.

@moofik moofik changed the title keep-alive does not work keep-alive connection does not work May 6, 2019
@peter279k
Copy link
Contributor

Thank you for your reply.

Could you provide sample code you execute?

And we can look at that about keep-alive connection.

@yufewell
Copy link

I have same question, how to get a keep-alive connection?

@Taluu
Copy link
Contributor

Taluu commented Oct 22, 2019

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...

@yufewell
Copy link

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...

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants