Skip to content

lightgun-poc / lib/rtc / ChannelLike

Interface: ChannelLike ​

Defined in: lib/rtc.ts:21

The slice of a werift RTCDataChannel we consume.

Properties ​

onMessage ​

onMessage: object

Defined in: lib/rtc.ts:22

subscribe() ​

subscribe(cb): void

Parameters ​
cb ​

(data) => void

Returns ​

void


readyState ​

readyState: string

Defined in: lib/rtc.ts:24

werift's channel state; only "open" channels are broadcast to.

Methods ​

send() ​

send(data): void

Defined in: lib/rtc.ts:25

Parameters ​

data ​

string

Returns ​

void

Released under the MIT License.