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 <apayne@MM.local>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alexander Whitestone
2026-02-27 20:27:20 -05:00
committed by GitHub
parent b0d451ae5a
commit bc21bbe96f
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);