clean, add http ping to connected servers

This commit is contained in:
marlon-erler
2026-04-01 17:44:12 +00:00
parent 6d7ef89355
commit 3545606399
4 changed files with 8 additions and 5 deletions
+6
View File
@@ -100,6 +100,12 @@ export function connectServers(config: typeof defaultConfig): void {
}
export function reconnectServers(config: typeof defaultConfig): void {
config.connectedServers
.map(address => address.replace("ws", "http"))
.forEach(address => {
fetch(address);
});
[...serversDisconnected.values()].forEach((address) => {
connectServer(address, config);
});