fix: disconnection issue by adding a persistent ping
CI / Test (pull_request) Successful in 19s

This commit is contained in:
2026-05-09 14:31:41 +02:00
parent eb9b335789
commit 6121a40a02
+4 -1
View File
@@ -43,7 +43,8 @@ export function ts3gotifyFactory(
ts3Client: TeamSpeak,
gotifyClient: Gotify,
gotifyConfig: GotifyConfig,
logger: Logger
logger: Logger,
pingInterval = 2_500
) {
let reconnectInProgress = false;
@@ -108,6 +109,8 @@ export function ts3gotifyFactory(
}
}
setInterval(() => ts3Client.version(true), pingInterval);
ts3Client.on("close", async () => {
await reconnectWithBackoff();
});