mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00
Reduce realtime timeout and heartbeat interval to handle stale clients quicker
This commit is contained in:
parent
1df5b4ce49
commit
da7b6a340d
2 changed files with 3 additions and 3 deletions
|
@ -2049,7 +2049,7 @@ function havePermission() {
|
|||
//socket.io actions
|
||||
var socket = io.connect({
|
||||
path: urlpath ? '/' + urlpath + '/socket.io/' : '',
|
||||
timeout: 10000 //10 secs to timeout
|
||||
timeout: 5000 //5 secs to timeout
|
||||
});
|
||||
//overwrite original event for checking login state
|
||||
var on = socket.on;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue