mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 23:14:24 +00:00
Added timeout on socket
This commit is contained in:
parent
3ab04d4f02
commit
b87463ae0d
@ -997,7 +997,9 @@ function havePermission() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//socket.io actions
|
//socket.io actions
|
||||||
var socket = io.connect();
|
var socket = io.connect({
|
||||||
|
timeout: 10000 //10 secs to timeout
|
||||||
|
});
|
||||||
//overwrite original event for checking login state
|
//overwrite original event for checking login state
|
||||||
var on = socket.on;
|
var on = socket.on;
|
||||||
socket.on = function () {
|
socket.on = function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user