We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6f9989 commit c4ee7aaCopy full SHA for c4ee7aa
server.js
@@ -331,7 +331,7 @@ Server.prototype._onWebSocketRequest = function (socket, params) {
331
offer_id: params.offers[i].offer_id,
332
peer_id: common.hexToBinary(params.peer_id),
333
info_hash: common.hexToBinary(params.info_hash)
334
- }))
+ }), peer.socket.onSend)
335
debug('sent offer to %s from %s', peer.peerId, params.peer_id)
336
})
337
}
@@ -353,7 +353,7 @@ Server.prototype._onWebSocketRequest = function (socket, params) {
353
offer_id: params.offer_id,
354
355
356
+ }), toPeer.socket.onSend)
357
debug('sent answer to %s from %s', toPeer.peerId, params.peer_id)
358
359
0 commit comments