ws tracker: JSON.stringify messages

This commit is contained in:
Feross Aboukhadijeh 2015-05-05 23:05:10 -07:00
parent cd861ff288
commit 2b48883742

View File

@ -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) {