Skip to main content
Skip to main content

OnReadOpts

Properties

bufferUint8Array | () => Uint8ArrayRequired

Methods

callback

This function is called for every chunk of incoming data. Two arguments are passed to it: the number of bytes written to buffer and a reference to buffer. Return false from this function to implicitly pause() the socket.

Parameters

bytesWrittennumberRequired
bufUint8ArrayRequired

Returns

booleanboolean
Was this section helpful?