RelayFunc: (it: AsyncIterable<Uint8Array>) => AsyncIterable<Uint8Array>

Function to relay packets between two logical forwarders.

Type declaration

    • (it: AsyncIterable<Uint8Array>): AsyncIterable<Uint8Array>
    • Parameters

      • it: AsyncIterable<Uint8Array>

        stream of packet buffers received from peer side.

      Returns AsyncIterable<Uint8Array>

      stream of packet buffers injected into our side.