Updated to the correct position of the parsers

This commit is contained in:
Arnout Kazemier
2011-06-05 21:38:33 +02:00
parent e04f5e36b2
commit 02ba0d7db8
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@
WS.prototype.send = function (data) {
if (this.socket) {
this.socket.send(this.encode(data));
this.socket.send(this.parser.encodePacket(data));
}
return this;

View File

@@ -62,7 +62,7 @@
XHR.prototype.checkSend = function () {
if (!this.posting && this.sendBuffer.length){
var encoded = io.encodePayload(this.sendBuffer);
var encoded = io.parser.encodePayload(this.sendBuffer);
this.sendBuffer = [];
this.post(encoded);
}