Skip to content

[Documentation improvements] HeartBeats stops working when the tabs goes inactive on Chrome 88+ #335

@anthonyraymond

Description

@anthonyraymond

Hello,

I've spent an hour trying to debug a non-existing but today between your lib and a stomp server. To prevent other from doing so here is what is going on.

Problem

I have a (15,15) heartbeat set in my app. When my tab stays inactive for some time (+-5min) the Stomp connection is eventually closed for no reasons.

Reason

HeartBeats stops working after some times
In chrome (and all Chromium forks), when a tab respect some criterias it is considered inactive and all his timers are throttled.

The throttling used to be 1 action per second, but recently, with chrome 88 and above a stricter set of criterias also applies, and if they match the throttle is now one action per minute.

It's not something that can be fixed IMO, but i can be handy to have this warning in the project documentation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions