Explorar o código

store just messsage

ericz %!s(int64=12) %!d(string=hai) anos
pai
achega
f2c420fb59
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/server.js

+ 1 - 1
lib/server.js

@@ -274,7 +274,7 @@ PeerServer.prototype._handleTransmission = function(message, res) {
           }
         }, this._options.timeout);
       }
-      this._outstandingOffers[dst][src].push(Array.prototype.slice.apply(arguments));
+      this._outstandingOffers[dst][src].push([message]);
       if (!!res) res.send(200);
     } else if (type === 'LEAVE' && !dst) {
       this._removePeer(src);