Class StreamTransport<T>

Node.js stream-based transport.

Type Parameters

  • T extends NodeJS.ReadWriteStream = NodeJS.ReadWriteStream

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

Properties

attributes: Transport.Attributes

Attributes of the transport.

conn: T

Iterable of incoming packets received through the transport.

Accessors

Methods

  • Function to accept outgoing packet stream.

    Parameters

    • iterable: TxIterable

      Iterable of outgoing packets sent through the transport. Size of each packet cannot exceed .mtu.

    Returns Promise<void>

    Promise that resolves when iterable is exhausted or rejects upon error.