- fix topping bug where update value also save across states even already closed dialog
- fix disconnect may throw error
- add machine state payload from tcp socket
- add command/sheet api request
- add heartbeat message

Signed-off-by: pakintada@gmail.com <Pakin>
This commit is contained in:
pakintada@gmail.com 2026-04-12 10:47:53 +07:00
parent 230e2ec342
commit 916e056389
8 changed files with 78 additions and 30 deletions

View file

@ -173,7 +173,7 @@ const handlers: Record<string, (payload: any) => void> = {
export function handleIncomingMessages(raw: string) {
const msg: WSMessage = JSON.parse(raw);
console.log(`${new Date().toLocaleTimeString()}:ws msg`, msg);
// console.log(`${new Date().toLocaleTimeString()}:ws msg`, msg);
if (msg == null) {
// error response
addNotification('ERR:No response from server');