interface
net.OnReadOpts
interface OnReadOpts
- bytesWritten: number,): boolean;
This function is called for every chunk of incoming data. Two arguments are passed to it: the number of bytes written to
bufferand a reference tobuffer. Returnfalsefrom this function to implicitlypause()the socket.