Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

removeObsoleteConnections delete all connections that are alive after 2 minutes when messages are being sent to clients #869

Closed
genesiscz opened this issue Oct 6, 2021 · 3 comments

Comments

@genesiscz
Copy link

So this has bugged me for a while, but I finally got it!

After some time (exactly two minutes) the library stopped sending me messages because Laravel Echo/Pusher-js doesn't ping-pong in case there's traffic going on. So the lastPongedAt doesn't get updated, which in turn, deletes the client from the channel connections list and stops sending the messages to that client. I can ping-pong manually, but I feel this is a wider problem and I am shocked nobody actually pointed it out. This should be at least a big red in the documentation.

@markeilander
Copy link

Having the same issue. Did you find any fix?

@JulianLiu
Copy link

You may want to take a look at this PR
#778

@genesiscz
Copy link
Author

Having the same issue. Did you find any fix?

  • I changed it in the vendor folder to not remove them for a day (I am resetting the websocket once a day)
  • I started ping ponging manually

@mpociot mpociot closed this as completed Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants