Skip to content

Commit ac9b3f0

Browse files
committed
feat: sync page unload (disconnect)
1 parent c4ad697 commit ac9b3f0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

static/karma.src.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ var socket = io.connect('http://' + location.host, {
88
'reconnection delay': 500,
99
'reconnection limit': 2000,
1010
'resource': KARMA_URL_ROOT.substr(1) + 'socket.io',
11+
'sync disconnect on unload': true,
1112
'max reconnection attempts': Infinity
1213
});
1314

0 commit comments

Comments
 (0)