Skip to content

API Interface RpcDef

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Interface: RpcDef<S>

Defined in: src/engine/net/messages.ts:47

A reliable message type (Unity's IRpcCommand).

Type Parameters

S

S extends RpcSchema = RpcSchema

Properties

id

readonly id: string;

Defined in: src/engine/net/messages.ts:48


schema

readonly schema: S;

Defined in: src/engine/net/messages.ts:49

Methods

read()

read(): Iterable<RpcRow<S>>;

Defined in: src/engine/net/messages.ts:57

Messages the current World received, in arrival order: in fixedUpdate, those that arrived for this fixed step; in update and lateUpdate, those that arrived this frame. Each is seen once by each phase, then dropped.

Returns

Iterable<RpcRow<S>>


send()

send(values, to?): void;

Defined in: src/engine/net/messages.ts:51

Queue a message from the current World. Sent at the end of its frame.

Parameters

values

Readonly<RpcValues<S>>

to?

RpcTarget

Returns

void

Clone this wiki locally