mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
WebSocket tracker should have a shorter interval – default: 2 minutes
This commit is contained in:
parent
308f3e82a6
commit
f56ca3031b
@ -316,6 +316,10 @@ Server.prototype._onWebSocketRequest = function (socket, params) {
|
||||
|
||||
var peers = response.peers
|
||||
delete response.peers
|
||||
|
||||
// WebSocket tracker should have a shorter interval – default: 2 minutes
|
||||
response.interval = Math.ceil(self.intervalMs / 1000 / 5)
|
||||
|
||||
response.info_hash = common.hexToBinary(params.info_hash)
|
||||
|
||||
socket.send(JSON.stringify(response), socket.onSend)
|
||||
|
Loading…
Reference in New Issue
Block a user