mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 10:56:25 +00:00
ws tracker: JSON.stringify messages
This commit is contained in:
parent
cd861ff288
commit
2b48883742
@ -161,8 +161,9 @@ WebSocketTracker.prototype._onSocketData = function (data) {
|
|||||||
|
|
||||||
WebSocketTracker.prototype._send = function (params) {
|
WebSocketTracker.prototype._send = function (params) {
|
||||||
var self = this
|
var self = this
|
||||||
debug('send %s', JSON.stringify(params))
|
var message = JSON.stringify(params)
|
||||||
self._socket.send(params)
|
debug('send %s', message)
|
||||||
|
self._socket.send(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
WebSocketTracker.prototype._generateOffers = function (numWant, cb) {
|
WebSocketTracker.prototype._generateOffers = function (numWant, cb) {
|
||||||
|
Loading…
Reference in New Issue
Block a user