James Coglan
|
7953bc39ff
|
Implement masking as a transform stream.
|
2014-05-11 22:07:34 +01:00 |
|
James Coglan
|
bf39b7b44b
|
Optimise some special cases in StreamReader; return a new Buffer from read() immediately if there's enough buffered data, and if the read can be fulfilled entirely from the first queued buffer than take a slice rather than copying into a new buffer.
|
2014-05-11 13:33:51 +01:00 |
|
James Coglan
|
85ba40ac32
|
Convert StreamReader so that it emits streams rather than waiting for an entire payload.
|
2014-05-09 15:35:40 +01:00 |
|
James Coglan
|
e6edb23681
|
Rather than a sync read() method in a loop, use an async read() method with a callback.
|
2014-05-08 16:35:21 +01:00 |
|
James Coglan
|
ed3907d5fd
|
Clean up the state management code in StreamReader.
|
2014-05-07 20:49:49 +01:00 |
|
David Glasser
|
8d19ee823e
|
StreamReader: Don't hang on to fully read buffers
|
2014-05-06 11:52:59 -07:00 |
|
James Coglan
|
d93c853414
|
Don't pre-allocate a huge Buffer before we know there's enough chunks in the read queue to complete a message.
|
2013-12-02 21:07:33 +00:00 |
|
James Coglan
|
25c075a408
|
Rename the module to websocket-driver.
|
2013-05-04 16:42:44 +01:00 |
|