diff options
Diffstat (limited to '')
-rw-r--r-- | public/js/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js index c151b533..1348aa7f 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -997,7 +997,9 @@ function havePermission() { } //socket.io actions -var socket = io.connect(); +var socket = io.connect({ + timeout: 10000 //10 secs to timeout +}); //overwrite original event for checking login state var on = socket.on; socket.on = function () { |