pull-handshake
Create handshakes for binary protocols with pull streams.
Example
var stream =var shake = streamhandshake// Pull some amount of data out of the streamshake// shake is itself a duplex pull-stream.
API
handshake([opts], [callback])
opts
Type: Object
Default: {timeout: 5e3}
The allowed duration for the handshake to take place.
callback
Type: Function
Default: function noop () {}
This will be called when the handshake completes, or fails. In the case of failure it is called with an error
.
License
MIT