Skip to main content

WebOwnedObservableOptions<T>

Defined in: src/lib/observable/webOwned.ts:30

Options for creating a web-owned observable.

Extends

Type Parameters

Type Parameter
T

Properties

PropertyTypeDescriptionInherited fromDefined in
broadcast?booleanIf true, all connected players are automatically subscribed. If false (default), players must be manually subscribed. Default falseObservableOptions.broadcastsrc/lib/observable/types.ts:63
equals?(a: T, b: T) => booleanCustom equality function to determine if value has changed. Defaults to strict equality (===).Omit.equalssrc/lib/observable/types.ts:73
id?stringOptional ID for debugging. If not provided, a random ID is generated.-src/lib/observable/webOwned.ts:34
initialValueTInitial value of the observable.Omit.initialValuesrc/lib/observable/types.ts:55
syncDebounceMs?numberDebounce sync updates by this many milliseconds. Useful for frequently changing values. Default 0 (no debounce)ObservableOptions.syncDebounceMssrc/lib/observable/types.ts:81