From bc21bbe96f08a033a4519940d90ca6f649686969 Mon Sep 17 00:00:00 2001 From: Alexander Whitestone <8633216+AlexanderWhitestone@users.noreply.github.com> Date: Fri, 27 Feb 2026 20:27:20 -0500 Subject: [PATCH] fix: connect WebSocket to correct /swarm/live endpoint (#82) The tasks board and Timmy panel were connecting to /ws which doesn't exist, causing constant 403 Forbidden rejections and preventing live event updates from reaching the UI. Co-authored-by: Alexander Payne Co-authored-by: Claude Opus 4.6 --- src/dashboard/templates/partials/timmy_panel.html | 2 +- src/dashboard/templates/tasks.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dashboard/templates/partials/timmy_panel.html b/src/dashboard/templates/partials/timmy_panel.html index f2eabe2..09a1cd1 100644 --- a/src/dashboard/templates/partials/timmy_panel.html +++ b/src/dashboard/templates/partials/timmy_panel.html @@ -142,7 +142,7 @@ function connectWs() { try { - ws = new WebSocket(protocol + '//' + window.location.host + '/ws'); + ws = new WebSocket(protocol + '//' + window.location.host + '/swarm/live'); ws.onmessage = function(event) { try { var msg = JSON.parse(event.data); diff --git a/src/dashboard/templates/tasks.html b/src/dashboard/templates/tasks.html index f60732b..234d79b 100644 --- a/src/dashboard/templates/tasks.html +++ b/src/dashboard/templates/tasks.html @@ -328,7 +328,7 @@ document.addEventListener('click', function(e) { var ws; function connectTaskWs() { try { - ws = new WebSocket(protocol + '//' + window.location.host + '/ws'); + ws = new WebSocket(protocol + '//' + window.location.host + '/swarm/live'); ws.onmessage = function(event) { try { var msg = JSON.parse(event.data);