Files
kiss-flixel/feedback-server/externs/node/net/OnReadOpts.hx

11 lines
418 B
Haxe

package node.net;
typedef OnReadOpts = {
var buffer : ts.AnyOf2<js.lib.Uint8Array, () -> js.lib.Uint8Array>;
/**
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.
**/
function callback(bytesWritten:Float, buf:js.lib.Uint8Array):Bool;
};