Duplex

@JSImport("stream", "Duplex") @native @JSType class Duplex() extends StObject
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Constructors

def this(opts: DuplexOptions)

Concrete methods

def _destroy(error: Error, callback: Function1[Error | Null, Unit]): Unit
def _destroy(error: Null, callback: Function1[Error | Null, Unit]): Unit
def _final(callback: Function1[UndefOr[Error | Null], Unit]): Unit
def _write(chunk: Any, encoding: BufferEncoding, callback: Function1[UndefOr[Error | Null], Unit]): Unit
def cork(): Unit
def end(): Unit
def end(cb: Function0[Unit]): Unit
def end(chunk: Any): Unit
def end(chunk: Any, cb: Function0[Unit]): Unit
def end(chunk: Any, encoding: BufferEncoding): Unit
def end(chunk: Any, encoding: BufferEncoding, cb: Function0[Unit]): Unit
def end(chunk: Any, encoding: Unit, cb: Function0[Unit]): Unit
def uncork(): Unit
def write(chunk: Any): Boolean
def write(chunk: Any, cb: Function1[UndefOr[Error | Null], Unit]): Boolean
def write(chunk: Any, encoding: BufferEncoding): Boolean
def write(chunk: Any, encoding: BufferEncoding, cb: Function1[UndefOr[Error | Null], Unit]): Boolean
def write(chunk: Any, encoding: Unit, cb: Function1[UndefOr[Error | Null], Unit]): Boolean

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 _writev: UndefOr[Function2[Array[Chunk], Function1[UndefOr[Error | Null], Unit], Unit]]
val writable: Boolean
val writableCorked: Double
val writableEnded: Boolean
val writableFinished: Boolean
val writableLength: Double
val writableObjectMode: Boolean