mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Updated to the correct position of the parsers
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user