API Reference
    Preparing search index...

    Interface ChannelOptions

    Options used to create negotiated RTCDataChannel instances.

    interface ChannelOptions {
        filter?: (options: { remote: RemotePeer }) => boolean;
        id: number;
        label?: string;
        maxPacketLifeTime?: number;
        maxRetransmits?: number;
        ordered?: boolean;
        protocol?: string;
    }
    Index

    Properties

    filter?: (options: { remote: RemotePeer }) => boolean

    Optional callback to allow or block this channel for a remote peer.

    id: number

    Negotiated channel id (0-65535).

    label?: string

    Optional channel label.

    maxPacketLifeTime?: number

    Maximum packet lifetime in milliseconds.

    maxRetransmits?: number

    Maximum retransmission attempts.

    ordered?: boolean

    Whether ordered delivery is required.

    protocol?: string

    Optional subprotocol name.