diff --git a/lib/websocket-tracker.js b/lib/websocket-tracker.js index c31af91..b784888 100644 --- a/lib/websocket-tracker.js +++ b/lib/websocket-tracker.js @@ -161,8 +161,9 @@ WebSocketTracker.prototype._onSocketData = function (data) { WebSocketTracker.prototype._send = function (params) { var self = this - debug('send %s', JSON.stringify(params)) - self._socket.send(params) + var message = JSON.stringify(params) + debug('send %s', message) + self._socket.send(message) } WebSocketTracker.prototype._generateOffers = function (numWant, cb) {