Skip to content

five-on-it / apps/server/src/rtc-wire / RtcWorkerConfig

Interface: RtcWorkerConfig ​

Defined in: apps/server/src/rtc-wire.ts:30

What the RTC worker is started with.

Properties ​

addresses ​

addresses: string[]

Defined in: apps/server/src/rtc-wire.ts:35

The local addresses it gathers candidates on (FOI_RTC_ADDRESSES); every one of the host's when empty.


channel ​

channel: RtcChannelConfig

Defined in: apps/server/src/rtc-wire.ts:45

The channel both ends create.


connectTimeoutMs ​

connectTimeoutMs: number

Defined in: apps/server/src/rtc-wire.ts:43

How long a peer has to open its channel from its offer (ms).


kind ​

kind: "foi-rtc"

Defined in: apps/server/src/rtc-wire.ts:31


maxHandshakes ​

maxHandshakes: number

Defined in: apps/server/src/rtc-wire.ts:41

The most handshakes it runs at once; the next offers wait their turn.


maxPeers ​

maxPeers: number

Defined in: apps/server/src/rtc-wire.ts:39

The most peers it holds, open or on their way (FOI_RTC_MAX_PEERS).


ports ​

ports: [number, number]

Defined in: apps/server/src/rtc-wire.ts:33

The UDP ports its peer connections bind to, first and last (FOI_RTC_PORTS).


publicIp ​

publicIp: string | undefined

Defined in: apps/server/src/rtc-wire.ts:37

The address announced in its candidates instead of the local one (FOI_RTC_PUBLIC_IP).