Packages

class Duplex extends Object with StObject

Duplex streams are streams that implement both the Readable and Writable interfaces.

Examples of Duplex streams include:

* TCP sockets * zlib streams * crypto streams

Annotations
@JSType() @JSImport("stream", "Duplex") @native()
Since

v0.9.4

Linear Supertypes
StObject, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Duplex
  2. StObject
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Duplex(opts: DuplexOptions)
  2. new Duplex()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def _destroy(error: Null, callback: Function1[|[Error, Null], Unit]): Unit
  5. def _destroy(error: Error, callback: Function1[|[Error, Null], Unit]): Unit
  6. def _final(callback: Function1[UndefOr[|[Error, Null]], Unit]): Unit
  7. def _write(chunk: Any, encoding: BufferEncoding, callback: Function1[UndefOr[|[Error, Null]], Unit]): Unit
  8. var _writev: UndefOr[Function2[Array[Chunk], Function1[UndefOr[|[Error, Null]], Unit], Unit]]
  9. var allowHalfOpen: Boolean

    If false then the stream will automatically end the writable side when the readable side ends.

    If false then the stream will automatically end the writable side when the readable side ends. Set initially by the allowHalfOpen constructor option, which defaults to false.

    This can be changed manually to change the half-open behavior of an existingDuplex stream instance, but must be changed before the 'end' event is emitted.

    Since

    v0.9.4

  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. def cork(): Unit
  13. def end(chunk: Any, encoding: Unit, cb: Function0[Unit]): Unit
  14. def end(chunk: Any, encoding: BufferEncoding, cb: Function0[Unit]): Unit
  15. def end(chunk: Any, encoding: BufferEncoding): Unit
  16. def end(chunk: Any, cb: Function0[Unit]): Unit
  17. def end(chunk: Any): Unit
  18. def end(cb: Function0[Unit]): Unit
  19. def end(): Unit
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  31. def setDefaultEncoding(encoding: BufferEncoding): Duplex.this.type
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toLocaleString(): String
    Definition Classes
    Object
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. def uncork(): Unit
  36. def valueOf(): Any
    Definition Classes
    Object
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. val writable: Boolean
  41. val writableCorked: Double
  42. val writableEnded: Boolean
  43. val writableFinished: Boolean
  44. val writableHighWaterMark: Double
  45. val writableLength: Double
  46. val writableObjectMode: Boolean
  47. def write(chunk: Any, encoding: Unit, cb: Function1[UndefOr[|[Error, Null]], Unit]): Boolean
  48. def write(chunk: Any, encoding: BufferEncoding, cb: Function1[UndefOr[|[Error, Null]], Unit]): Boolean
  49. def write(chunk: Any, encoding: BufferEncoding): Boolean
  50. def write(chunk: Any, cb: Function1[UndefOr[|[Error, Null]], Unit]): Boolean
  51. def write(chunk: Any): Boolean

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from StObject

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped