Function txToStream

  • Pipe encoded packets to output stream.

    Parameters

    • conn: WritableStream

      TX output stream, such as a TCP socket.

    • iterable: TxIterable

      TX packet stream.

    Returns Promise<void>

    Remarks

    conn will be closed/destroyed upon reaching the end of packet stream.