peerix - v0.8.0
    Preparing search index...

    Interface ChannelOptions

    Options used to create negotiated RTCDataChannel instances.

    interface ChannelOptions {
        label?: string;
        maxPacketLifeTime?: number;
        maxRetransmits?: number;
        ordered?: boolean;
        protocol?: string;
    }
    Index
    label?: string

    Channel label. If omitted, the default label will be used.

    maxPacketLifeTime?: number

    Maximum packet lifetime in milliseconds.

    maxRetransmits?: number

    Maximum retransmission attempts.

    ordered?: boolean

    Whether ordered delivery is required.

    protocol?: string

    Optional subprotocol name. A channel with a protocol carries raw datagrams: send passes strings and binary data straight to the channel, and the receiver gets the payload as is, so the app owns the wire format. On an unreliable channel (ordered: false, maxRetransmits or maxPacketLifeTime), a message is dropped instead of queued behind a full buffer. That suits realtime data such as pointer positions.