Skip to content

Commit 7ac0e95

Browse files
committed
Expose WebSocketTracker socket pool
This is necessary for the Internet Archive superpeer implementation.
1 parent 77a2cb9 commit 7ac0e95

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)