OnReadOpts

@native @JSType trait OnReadOpts extends StObject
Companion
object
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def callback(bytesWritten: Double, buf: 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.

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.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

var buffer: Uint8Array | Function0[Uint8Array]