From ac9b3f01e88ce2cf91fc86aca9cecfdb8177a6fa Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Sun, 18 Aug 2013 14:31:20 -0700 Subject: [PATCH] feat: sync page unload (disconnect) --- static/karma.src.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/karma.src.js b/static/karma.src.js index a64d3f3ef..8dd131b28 100644 --- a/static/karma.src.js +++ b/static/karma.src.js @@ -8,6 +8,7 @@ var socket = io.connect('http://' + location.host, { 'reconnection delay': 500, 'reconnection limit': 2000, 'resource': KARMA_URL_ROOT.substr(1) + 'socket.io', + 'sync disconnect on unload': true, 'max reconnection attempts': Infinity });