Skip to content

Documentation / @super-line/core / RoleBlock

Interface: RoleBlock

Defined in: packages/core/src/contract.ts:54

A role block: its directions plus an optional data schema typing conn.data.

Extends

Properties

clientToServer?

optional clientToServer?: Record<string, RequestDef>

Defined in: packages/core/src/contract.ts:48

Requests this side may call (client→server).

Inherited from

Directional.clientToServer


data?

optional data?: Schema

Defined in: packages/core/src/contract.ts:56

Schema for this role's mutable per-connection conn.data (server-side scratch state).


serverToClient?

optional serverToClient?: Record<string, ServerEntry>

Defined in: packages/core/src/contract.ts:50

Events, topics, and server→client requests this side may receive.

Inherited from

Directional.serverToClient

Released under the MIT License.