mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 12:11:36 +00:00
Add extra data on ws annouce event
This commit is contained in:
parent
1efb832dd7
commit
8482c3af0a
@ -266,11 +266,8 @@ WebSocketTracker.prototype._onAnnounceResponse = function (data) {
|
||||
}
|
||||
|
||||
if (data.complete != null) {
|
||||
self.client.emit('update', {
|
||||
announce: self.announceUrl,
|
||||
complete: data.complete,
|
||||
incomplete: data.incomplete
|
||||
})
|
||||
data.announce = self.announceUrl
|
||||
self.client.emit('update', data)
|
||||
}
|
||||
|
||||
var peer
|
||||
|
Loading…
Reference in New Issue
Block a user