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?
optionalsubscribe?:boolean
Defined in: packages/core/src/contract.ts:27
When true, clients opt in via client.subscribe(...) (a topic). Omit for a push event.