Skip to content

five-on-it / apps/server/src/rtc-transport / withRtc

Function: withRtc() ​

withRtc(connection, host): RtcConnection

Defined in: apps/server/src/rtc-transport.ts:96

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

Parameters ​

connection ​

Connection

host ​

RtcPeerHost

Returns ​

RtcConnection