Skip to content

lightgun-poc / lib/rtc / createRtcHub

Function: createRtcHub() ​

createRtcHub(onRaw, deps?): RtcHub

Defined in: lib/rtc.ts:103

Creates the hub. onRaw receives every DataChannel payload exactly as the WS path receives socket frames — same bytes, same parser, same handler.

Parameters ​

onRaw ​

(raw) => void

deps? ​

RtcHubDeps = {}

Returns ​

RtcHub

Released under the MIT License.