LogoRobo.js
Packages@robojs/sync

SyncHandlerModule<T, ClientData>

Interface: SyncHandlerModule<T, ClientData>

A sync handler module can export any combination of these.

Type Parameters

Type ParameterDefault type
Tunknown
ClientDataunknown

Indexable

[key: string]: unknown

Properties

PropertyTypeDescription
onUpdate?OnUpdateHandler<T, ClientData>Called after successful update
schema?unknownSchema for validation (Zod or built-in format)
transform?TransformHandler<T, ClientData>Transform state before broadcasting
validate?ValidateHandler<T, ClientData>Validate incoming updates

On this page