mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 10:31: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) {
|
if (data.complete != null) {
|
||||||
self.client.emit('update', {
|
data.announce = self.announceUrl
|
||||||
announce: self.announceUrl,
|
self.client.emit('update', data)
|
||||||
complete: data.complete,
|
|
||||||
incomplete: data.incomplete
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var peer
|
var peer
|
||||||
|
Loading…
Reference in New Issue
Block a user