forked from Rockachopa/Timmy-time-dashboard
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:
committed by
GitHub
parent
b0d451ae5a
commit
bc21bbe96f
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user