This commit is contained in:
+4
-1
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user