Skip to content

Commit 313f435

Browse files
authored
Merge pull request #286 from jhiesey/master
Expose WebSocketTracker socket pool
2 parents 77a2cb9 + 7ac0e95 commit 313f435

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/client/websocket-tracker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ var Tracker = require('./tracker')
1414
// In practice, WebSockets are pretty slow to establish, so this gives a nice performance
1515
// boost, and saves browser resources.
1616
var socketPool = {}
17+
// Normally this shouldn't be accessed but is occasionally useful
18+
WebSocketTracker._socketPool = socketPool
1719

1820
var RECONNECT_MINIMUM = 15 * 1000
1921
var RECONNECT_MAXIMUM = 30 * 60 * 1000

0 commit comments

Comments
 (0)