Adjust intervals for outgoing demo messages

- subscription updates: 10 seconds
- logging messages: 20 seconds
- stderr messages: 30 seconds
This commit is contained in:
cliffhall
2025-04-15 10:52:34 -04:00
parent 41fa29e21b
commit b8ecbe79de

View File

@@ -124,7 +124,7 @@ export const createServer = () => {
params: { uri },
});
}
}, 5000);
}, 10000);
let logLevel: LoggingLevel = "debug";
let logsUpdateInterval: NodeJS.Timeout | undefined;
@@ -153,7 +153,7 @@ export const createServer = () => {
};
if (!isMessageIgnored(message.params.level as LoggingLevel))
server.notification(message);
}, 15000);
}, 20000);
// Set up update interval for stderr messages
@@ -167,7 +167,7 @@ export const createServer = () => {
method: "notifications/stderr",
params: { content: `${shortTimestamp}: A stderr message` },
});
}, 10000);
}, 30000);
// Helper method to request sampling from client
const requestSampling = async (