Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat(socket): export getIo() accessor for unattended emit paths
Adam Eivy5cfbfa34493e
diff --git a/server/services/socket.js b/server/services/socket.jsindex 35b33984d1..bcce4c5aa4 100644--- a/server/services/socket.js+++ b/server/services/socket.js@@ -64,6 +64,15 @@ const loopSubscribers = new Set();// Store io instance for broadcastinglet ioInstance = null;+/**+ * Return the module-level Socket.IO instance (null before initSocket runs).+ * Lets services emit to clients from unattended paths (cron handlers) that+ * don't receive an `io` argument.+ */+export function getIo() {+ return ioInstance;+}+const ALL_SUBSCRIBER_SETS = [cosSubscribers, errorSubscribers, notificationSubscribers, agentSubscribers, instanceSubscribers, loopSubscribers];function broadcastToSet(set, event, data) {