Fix WS timeouts:

Nginx as also a timeout. Seems to be 30s. So we ping every 25s, and set an intermediate timeout for Prosody.
This commit is contained in:
John Livingston
2022-11-01 11:58:02 +01:00
parent 90e86a130a
commit a25cdb44ef
2 changed files with 3 additions and 2 deletions

View File

@ -138,7 +138,7 @@ window.initConverse = async function initConverse ({
assets_path: assetsPath,
authentication: 'anonymous',
ping_interval: 60, // must be set accordingly to c2s_close_timeout backend websocket settings
ping_interval: 25, // must be set accordingly to c2s_close_timeout backend websocket settings and nginx timeout
auto_login: true,
auto_join_rooms: [
room