Skip to main content
Module

x/evt/lib/types/lib.dom.ts>RTCIceTransport

💧EventEmitter's typesafe replacement
Go to Latest
interface RTCIceTransport
implements EventTarget
import { type RTCIceTransport } from "https://deno.land/x/evt@v2.4.3/lib/types/lib.dom.ts";

Provides access to information about the ICE transport layer over which the data is being sent and received.

Properties

readonly
component: RTCIceComponent
readonly
gatheringState: RTCIceGathererState
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null
onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null
onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null
readonly
role: RTCIceRole
readonly
state: RTCIceTransportState

Methods

getLocalCandidates(): RTCIceCandidate[]
getLocalParameters(): RTCIceParameters | null
getRemoteCandidates(): RTCIceCandidate[]
getRemoteParameters(): RTCIceParameters | null
getSelectedCandidatePair(): RTCIceCandidatePair | null
addEventListener<K extends keyof RTCIceTransportEventMap>(
type: K,
listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof RTCIceTransportEventMap>(
type: K,
listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void