Skip to content

Documentation / @super-line/core / ServerMessageDef

Interface: ServerMessageDef ​

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

A server→client message. With subscribe: true it becomes a client-subscribable topic; otherwise it is a server-pushed event.

Properties ​

payload ​

payload: Schema

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

Schema for the message body.


subscribe? ​

optional subscribe?: boolean

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

When true, clients opt in via client.subscribe(...) (a topic). Omit for a push event.

Released under the MIT License.