workadventure/pusher/src
David Négrier 05646718a9 Fix disconnects after 5 minutes in Chrome
This commit increases idle timeout for websocket connection

Issue: after 5 minutes of inactive tab (hidden tab) in Chrome, WorkAdventure was disconnected.

I believe Google was going in "intensive throttling" mode (see  https://developer.chrome.com/blog/timer-throttling-in-chrome-88/#intensive-throttling)
This means setTimeouts are run only once per minute.

And I believe the "keep alive" must be implemented with a "setTimeout" (one way or another even if I can't find a trace of this in the code). This would mean that the browser would send keep alive requests only once per minute.
But the pusher is configured to shut the connection after 30 seconds of idle activity.

Therefore, the pusher disconnects inactive Chrome tabs. By raising the Pusher idle timer to 2 minutes, we give a chance to Chrome to send a ping to the server in time (since Chrome won't send more than 1 ping per minute).
2021-09-10 18:30:36 +02:00
..
Controller Add play uri for login and register in hydra (#1421) 2021-09-08 13:39:46 +02:00
Enum Fix disconnects after 5 minutes in Chrome 2021-09-10 18:30:36 +02:00
Messages Adding a Pusher container as a middleware/dispatcher between front and back 2020-11-26 17:53:30 +01:00
Model Fix some typos (found by codespell) (#1316) 2021-07-27 14:29:09 +02:00
Server Fixing eslint ignore broken by Prettier 2021-06-24 10:23:32 +02:00
Services Add play uri for login and register in hydra (#1421) 2021-09-08 13:39:46 +02:00
App.ts Applying Prettier on pusher and back 2021-06-24 10:09:10 +02:00