Skip to content

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? ​

optional createPeer?: (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? ​

optional now?: () => number

Defined in: apps/client/src/renderer/rtc.ts:95

The clock (performance.now).

Returns ​

number


refuse? ​

optional refuse?: boolean

Defined in: apps/client/src/renderer/rtc.ts:91

The page refuses the channel (?rtc=0): the WebSocket alone.