@yemi33/minions 0.1.70 → 0.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dashboard/js/refresh.js +2 -16
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dashboard/js/refresh.js
CHANGED
|
@@ -57,22 +57,8 @@ async function refresh() {
|
|
|
57
57
|
|
|
58
58
|
refresh();
|
|
59
59
|
|
|
60
|
-
//
|
|
61
|
-
|
|
62
|
-
let _statusStream = null;
|
|
63
|
-
try {
|
|
64
|
-
_statusStream = new EventSource('/api/status-stream');
|
|
65
|
-
_statusStream.onmessage = (e) => {
|
|
66
|
-
try { _processStatusUpdate(JSON.parse(e.data)); } catch (e2) { console.error('status-stream:', e2.message); }
|
|
67
|
-
};
|
|
68
|
-
_statusStream.addEventListener('reload', () => { location.reload(); });
|
|
69
|
-
_statusStream.onerror = () => {
|
|
70
|
-
if (_statusStream) { _statusStream.close(); _statusStream = null; }
|
|
71
|
-
setInterval(refresh, 4000);
|
|
72
|
-
};
|
|
73
|
-
} catch {
|
|
74
|
-
setInterval(refresh, 4000);
|
|
75
|
-
}
|
|
60
|
+
// Poll for status updates (SSE caused HTTP/1.1 connection exhaustion — CC fetch would fail)
|
|
61
|
+
setInterval(refresh, 4000);
|
|
76
62
|
|
|
77
63
|
// Wire sidebar navigation
|
|
78
64
|
document.querySelectorAll('.sidebar-link').forEach(link => {
|
package/package.json
CHANGED