fix: disconnection issue by adding a persistent ping #121

Merged
t.behrendt merged 1 commits from fix-disconnection-issue into main 2026-05-09 14:38:52 +02:00
+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();
});