mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 12:11:36 +00:00
Expose WebSocketTracker socket pool
This is necessary for the Internet Archive superpeer implementation.
This commit is contained in:
parent
77a2cb93d9
commit
7ac0e9539a
@ -14,6 +14,8 @@ var Tracker = require('./tracker')
|
||||
// In practice, WebSockets are pretty slow to establish, so this gives a nice performance
|
||||
// boost, and saves browser resources.
|
||||
var socketPool = {}
|
||||
// Normally this shouldn't be accessed but is occasionally useful
|
||||
WebSocketTracker._socketPool = socketPool
|
||||
|
||||
var RECONNECT_MINIMUM = 15 * 1000
|
||||
var RECONNECT_MAXIMUM = 30 * 60 * 1000
|
||||
|
Loading…
Reference in New Issue
Block a user