Skip to content

five-on-it / apps/client/src/renderer/rtc / withRtc

Function: withRtc() ​

withRtc(socket, options?): RtcTransport

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

Wraps the WebSocket transport so its unreliable frames go over a data channel while one is open.

Parameters ​

socket ​

Transport

options? ​

RtcOptions = {}

Returns ​

RtcTransport