five-on-it / apps/client/src/renderer/rtc / RtcOptions
Interface: RtcOptions
Defined in: apps/client/src/renderer/rtc.ts:89
How the transport runs.
Properties
createPeer?
optionalcreatePeer?: (config) =>RTCPeerConnection
Defined in: apps/client/src/renderer/rtc.ts:93
Makes the peer connection (the browser's RTCPeerConnection; a fake in the tests).
Parameters
config
RTCConfiguration
Returns
RTCPeerConnection
now?
optionalnow?: () =>number
Defined in: apps/client/src/renderer/rtc.ts:95
The clock (performance.now).
Returns
number
refuse?
optionalrefuse?:boolean
Defined in: apps/client/src/renderer/rtc.ts:91
The page refuses the channel (?rtc=0): the WebSocket alone.