Skip to content

NetTransport

Defined in: net/NetChannel.ts:13

The minimal socket surface NetChannel drives (GameSocket / WeChatSocket fit).

on(event, handler): () => void

Defined in: net/NetChannel.ts:16

Subscribe to incoming frames. Returns an unsubscribe function.

"message"

(data) => void

() => void


send(data): void

Defined in: net/NetChannel.ts:14

string | ArrayBuffer

void