Skip to content

Commit

Permalink
fixes #523. private 'payload' method in transport used from manager.j…
Browse files Browse the repository at this point in the history
…s, wasn't present in hybi parser
  • Loading branch information
einaros committed Sep 20, 2011
1 parent b2f9f19 commit 3c4a04e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/transports/websocket/hybi-07-12.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,20 @@ WebSocket.prototype.write = function (data) {
}
};

/**
* Writes a payload.
*
* @api private
*/

WebSocket.prototype.payload = function (msgs) {
for (var i = 0, l = msgs.length; i < l; i++) {
this.write(msgs[i]);
}

return this;
};

/**
* Frame server-to-client output as a text packet.
*
Expand Down

0 comments on commit 3c4a04e

Please # to comment.