跳转到内容

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