RTCForge API Reference v1.1.1
    Preparing search index...

    Function dataChannelLabel

    • Build the label for one of a transfer's parallel data channels.

      Labels follow the scheme rtcforge-ft-<transferId>-<index>, letting the receiver route an incoming channel to the correct transfer and lane.

      Parameters

      • transferId: string

        Id of the transfer the channel belongs to.

      • index: number

        Zero-based index of the parallel channel within the transfer.

      Returns string

      The data-channel label.