Skip to content

five-on-it / apps/server/src/rtc-transport / RtcPeerHandle

Interface: RtcPeerHandle ​

Defined in: apps/server/src/rtc-transport.ts:38

A peer of the RTC worker, as a transport drives it (rtc-host.ts; a fake in the tests).

Methods ​

candidate() ​

candidate(candidate): void

Defined in: apps/server/src/rtc-transport.ts:40

Hands the peer one of the client's candidates.

Parameters ​

candidate ​
candidate ​

string = ...

sdpMid? ​

string | null = ...

sdpMLineIndex? ​

number | null = ...

usernameFragment? ​

string | null = ...

Returns ​

void


close() ​

close(): void

Defined in: apps/server/src/rtc-transport.ts:44

Closes the peer; no event follows.

Returns ​

void


send() ​

send(data): void

Defined in: apps/server/src/rtc-transport.ts:42

Sends a frame on the peer's channel.

Parameters ​

data ​

Uint8Array

Returns ​

void