namespace Lab505.Shared; /// /// Shared constants for SignalR hubs — used by both server and WASM client. /// public static class HubContracts { // ── Hub routes ──────────────────────────────────────────────── public const string StateHubRoute = "/stateHub"; public const string ScriptHubRoute = "/scriptHub"; // ── StateHub: server → client push events ───────────────────── public const string ImrStateEvent = "imr-state"; public const string AmrStateEvent = "amr-state"; public const string ConveyorStateEvent = "conveyor-state"; public const string AsrsStateEvent = "asrs-state"; public const string WorkflowStateEvent = "workflow-state"; public const string SystemStateEvent = "system-state"; // ── Notification: server → client (lệnh gửi / hoàn thành / lỗi) ── public const string NotificationEvent = "notification"; // ── Lock state: server → client push events ─────────────────── public const string LockStateEvent = "lock-state"; // ── Mode change: server → specific user (T3 remote switch) ─── public const string ModeChangedEvent = "mode-changed"; // ── ScriptHub: server → client push events ──────────────────── public const string ScriptLogEvent = "scriptLog"; public const string SimPanelStateEvent = "sim-panel-state"; }