Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

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