Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was 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

Description

@genesiscz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions