Interface RxTxDuplex

A logical face with duplex RX and TX packet streams.

interface RxTxDuplex {
    addEventListener?: <K extends "up" | "down">(
        type: K,
        listener: (ev: RxTxEventMap[K]) => any,
        options?: AddEventListenerOptions,
    ) => void;
    attributes?: FwFace.Attributes;
    duplex: (iterable: AsyncIterable<FwPacket>) => AsyncIterable<FwPacket>;
    removeEventListener?: <K extends "up" | "down">(
        type: K,
        listener: (ev: RxTxEventMap[K]) => any,
        options?: EventListenerOptions,
    ) => void;
}

Hierarchy (View Summary)

Properties

addEventListener?: <K extends "up" | "down">(
    type: K,
    listener: (ev: RxTxEventMap[K]) => any,
    options?: AddEventListenerOptions,
) => void
attributes?: FwFace.Attributes
duplex: (iterable: AsyncIterable<FwPacket>) => AsyncIterable<FwPacket>

Duplex RX and TX streams.

Type declaration

    • (iterable: AsyncIterable<FwPacket>): AsyncIterable<FwPacket>
    • Parameters

      • iterable: AsyncIterable<FwPacket>

        TX packet stream sent by the logical forwarder.

      Returns AsyncIterable<FwPacket>

      RX packet stream received by the logical forwarder.

removeEventListener?: <K extends "up" | "down">(
    type: K,
    listener: (ev: RxTxEventMap[K]) => any,
    options?: EventListenerOptions,
) => void