Skip to content

Commit 2b48883

Browse files
committed
ws tracker: JSON.stringify messages
1 parent cd861ff commit 2b48883

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/websocket-tracker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ WebSocketTracker.prototype._onSocketData = function (data) {
161161

162162
WebSocketTracker.prototype._send = function (params) {
163163
var self = this
164-
debug('send %s', JSON.stringify(params))
165-
self._socket.send(params)
164+
var message = JSON.stringify(params)
165+
debug('send %s', message)
166+
self._socket.send(message)
166167
}
167168

168169
WebSocketTracker.prototype._generateOffers = function (numWant, cb) {

0 commit comments

Comments
 (0)