spark.SparkUpdateMessage
export interface SparkUpdateMessage {
type: 'update';
/** Key of the updated value */
key: string;
/** New value */
value: unknown;
/** Timestamp of the update */
timestamp: number;
}type('update')key(string)- – Key of the updated value
value(unknown)- – New value
timestamp(number)- – Timestamp of the update
Message sent when a value changes in the worker.
Triggers UI updates in the React component.