Interface QWBPOptions

Configuration options for QWBPConnection

interface QWBPOptions {
    iceServers?: RTCIceServer[];
    maxCandidates?: number;
    onDataChannel?: ((channel: RTCDataChannel) => void);
    onError?: ((error: Error) => void);
    onStateChange?: ((state: ConnectionState) => void);
    timeout?: number;
}

Properties

iceServers?: RTCIceServer[]

ICE servers for STUN/TURN

maxCandidates?: number

Maximum number of candidates to include (default: 4)

onDataChannel?: ((channel: RTCDataChannel) => void)

Callback when DataChannel is ready

onError?: ((error: Error) => void)

Callback when error occurs

onStateChange?: ((state: ConnectionState) => void)

Callback when state changes

timeout?: number

Session timeout in milliseconds (default: 30000)