five-on-it / apps/server/src/rtc-transport / RtcPeerEvents
Interface: RtcPeerEvents
Defined in: apps/server/src/rtc-transport.ts:48
What a peer tells its transport.
Methods
answer()
answer(
sdp):void
Defined in: apps/server/src/rtc-transport.ts:50
The peer's answer to the offer.
Parameters
sdp
string
Returns
void
candidate()
candidate(
candidate):void
Defined in: apps/server/src/rtc-transport.ts:52
A candidate of the server's.
Parameters
candidate
candidate
string = ...
sdpMid?
string | null = ...
sdpMLineIndex?
number | null = ...
usernameFragment?
string | null = ...
Returns
void
closed()
closed(
reason):void
Defined in: apps/server/src/rtc-transport.ts:58
The peer closed of its own accord: why.
Parameters
reason
"full" | "failed" | "dropped" | "timeout" | "silence" | "worker" | "remote" | "frames"
Returns
void
frame()
frame(
data):void
Defined in: apps/server/src/rtc-transport.ts:56
A frame came on the channel.
Parameters
data
Uint8Array
Returns
void
open()
open():
void
Defined in: apps/server/src/rtc-transport.ts:54
The channel opened.
Returns
void