Skip to main content

ObservableOptions<T>

Defined in: src/lib/observable/types.ts:44

Options for creating an observable.

Extended by

Type Parameters

Type Parameter
T

Properties

PropertyTypeDescriptionDefined in
broadcast?booleanIf true, all connected players are automatically subscribed. If false (default), players must be manually subscribed. Default falsesrc/lib/observable/types.ts:63
equals?(a: T, b: T) => booleanCustom equality function to determine if value has changed. Defaults to strict equality (===).src/lib/observable/types.ts:73
idstringUnique identifier for this observable. Used for RPC event naming and debugging. Format: "moduleName:observableName"src/lib/observable/types.ts:50
initialValueTInitial value of the observable.src/lib/observable/types.ts:55
syncDebounceMs?numberDebounce sync updates by this many milliseconds. Useful for frequently changing values. Default 0 (no debounce)src/lib/observable/types.ts:81