From 2b488837421e7945951467673d8b6b0dcbc56142 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 5 May 2015 23:05:10 -0700 Subject: [PATCH] ws tracker: JSON.stringify messages --- lib/websocket-tracker.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) {