Interface DialWebRTCConf

Options required to dial a robot via WebRTC.

interface DialWebRTCConf {
    credentials?: Credential | AccessToken;
    dialTimeout?: number;
    dialTimeoutMs?: number;
    disableSessions?: boolean;
    extraHeaders?: Record<string, string>;
    host: string;
    iceServers?: ICEServer[];
    noReconnect?: boolean;
    priority?: number;
    reconnectAbortSignal?: { abort: boolean };
    reconnectMaxAttempts?: number;
    reconnectMaxWait?: number;
    serviceHost?: string;
    shouldRetryOnError?: () => boolean;
    signalingAddress: string;
}

Properties

credentials?: Credential | AccessToken
dialTimeout?: number

Set timeout in milliseconds for dialing. Default is defined by DIAL_TIMEOUT. A value of 0 disables the timeout.

Use dialTimeoutMs instead.

dialTimeoutMs?: number

Set timeout in milliseconds for dialing. Default is defined by DIAL_TIMEOUT. A value of 0 disables the timeout.

disableSessions?: boolean
extraHeaders?: Record<string, string>
host: string
iceServers?: ICEServer[]
noReconnect?: boolean
priority?: number
reconnectAbortSignal?: { abort: boolean }
reconnectMaxAttempts?: number
10.
reconnectMaxWait?: number
Number.POSITIVE_INFINITY
serviceHost?: string
shouldRetryOnError?: () => boolean

Called when a non-retryable error is encountered during reconnection. Return true to treat the error as retryable. Does not override reconnectMaxAttempts — retries are still bounded by that limit.

signalingAddress: string