This commit is contained in:
+4
-1
@@ -43,7 +43,8 @@ export function ts3gotifyFactory(
|
|||||||
ts3Client: TeamSpeak,
|
ts3Client: TeamSpeak,
|
||||||
gotifyClient: Gotify,
|
gotifyClient: Gotify,
|
||||||
gotifyConfig: GotifyConfig,
|
gotifyConfig: GotifyConfig,
|
||||||
logger: Logger
|
logger: Logger,
|
||||||
|
pingInterval = 2_500
|
||||||
) {
|
) {
|
||||||
let reconnectInProgress = false;
|
let reconnectInProgress = false;
|
||||||
|
|
||||||
@@ -108,6 +109,8 @@ export function ts3gotifyFactory(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setInterval(() => ts3Client.version(true), pingInterval);
|
||||||
|
|
||||||
ts3Client.on("close", async () => {
|
ts3Client.on("close", async () => {
|
||||||
await reconnectWithBackoff();
|
await reconnectWithBackoff();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user