From 8559fbd5a4745dda8dd842cf629df8bef88d8ac1 Mon Sep 17 00:00:00 2001 From: cliffhall Date: Sun, 7 Dec 2025 00:34:39 -0500 Subject: [PATCH] [WIP] Refactor everything server to be more modular and use recommended APIs. * In subscriptions.ts - updated inline doc --- src/everything/resources/subscriptions.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/everything/resources/subscriptions.ts b/src/everything/resources/subscriptions.ts index afe527c5..339cc30b 100644 --- a/src/everything/resources/subscriptions.ts +++ b/src/everything/resources/subscriptions.ts @@ -18,7 +18,7 @@ const transports: Map = new Map< >(); // Interval to send notifications to subscribers -let subsUpdateIntervals: Map = +const subsUpdateIntervals: Map = new Map(); /** @@ -151,8 +151,9 @@ export const beginSimulatedResourceUpdates = (transport: Transport) => { * * This function halts any active intervals associated with the provided session ID * and removes the session's corresponding entries from resource management collections. + * Session ID can be undefined for stdio. * - * @param {string} [sessionId] - The unique identifier of the session for which simulated resource updates should be stopped. If not provided, no action is performed. + * @param {string} [sessionId] */ export const stopSimulatedResourceUpdates = (sessionId?: string) => { // Remove active intervals