Create handshakes for binary protocols with iterable streams.
npm install it-handshake
See ./example.js
duplex: DuplexIterable
A duplex iterable stream
Returns a new handshake instance that produces BufferList
objects.
message: String|Buffer|BufferList
Returns the next BufferList
message in the stream.
Ends the writer. This is necessary for continuing to pipe data through shake.stream
The duplex iterable stream to be used once the handshake is complete.
The underyling it-reader used by shake.read()
. While direct usage of the reader is typically unnecessary, it is available for advanced usage.
The underyling writer, it-pushable, used by shake.write()
. While direct usage of the writer is typically unnecessary, it is available for advanced usage.
MIT © Jacob Heun