Major changes: logic add to panel, local variables, panel histor, users management...
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { writable, type Readable } from './store';
|
||||
import { writeLocalState } from './localstate';
|
||||
import type { SignalRef, SignalValue, SignalMeta, HistoryPoint } from './types';
|
||||
|
||||
// ── Types ────────────────────────────────────────────────────────────────────
|
||||
@@ -259,6 +260,11 @@ class WsClient {
|
||||
}
|
||||
|
||||
write(ref: SignalRef, value: any): void {
|
||||
// Panel-local variables never go to the server — update them in place.
|
||||
if (ref.ds === 'local') {
|
||||
writeLocalState(ref.name, value);
|
||||
return;
|
||||
}
|
||||
console.log('[ws] write', ref.ds, ref.name, value, 'ws state:', this.ws?.readyState);
|
||||
this._send({ type: 'write', ds: ref.ds, name: ref.name, value });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user