LearnBoost/engine.io-client — Issue #11: consider making websocket transport consistent to others
Author: dvv
Created: 2012-01-17 19:25:35+00:00
State: open

Needs to measure what's the fastest -- 10xsend('A'), or 1xsend('AAAAAAAAAA').
And what is more reliable, at least virtually, a priori.

That's how I monkey patch the client, so far:

```javascript
eio.transports.websocket.prototype.onData = function (data) {
data = eio.parser.decodePayload(data)
for (var i = 0, l = data.length; i < l; i++) {
this.onPacket(data[i])
}
};
eio.transports.websocket.prototype.write = function (packets) {
this.socket.send(eio.parser.encodePayload(packets));
};
```