workadventure/back/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 fixed invalid unauathorized handler 2021-07-01 15:50:40 +02:00
Enum Fix disconnects after 5 minutes in Chrome 2021-09-10 18:30:36 +02:00
Messages Migrating messages locally into back and front 2020-09-24 11:16:08 +02:00
Model Hotfix: if an error occurs while loading the map (because the map is not accessible from the WorkAdventure servers), the application does not prevent users from connecting. 2021-08-03 10:08:53 +02:00
Server Fixing eslint ignore broken by Prettier 2021-06-24 10:23:32 +02:00
Services Allowing variables nested in group layers 2021-09-02 18:05:55 +02:00
App.ts Applying Prettier on pusher and back 2021-06-24 10:09:10 +02:00
RoomManager.ts Merge branch 'develop' of github.com:thecodingmachine/workadventure into GlobalMessageToWorld 2021-07-30 09:38:28 +02:00