OnReadOpts

external interface OnReadOpts(source)

Properties

Link copied to clipboard
abstract var buffer: Any
Link copied to clipboard
abstract var callback: (bytesWritten: Number, buffer: Uint8Array<*>) -> Boolean

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.