Fix ws reconnect and change create site

This commit is contained in:
Owen
2025-08-19 21:29:56 -07:00
parent 254b3a0fc8
commit 25cef26251
4 changed files with 39 additions and 10 deletions

View File

@@ -139,9 +139,13 @@ export async function createHybridClientServer() {
logger.error("Failed to connect:", error);
}
client.sendMessageInterval(
// Store the ping interval stop function for cleanup if needed
const stopPingInterval = client.sendMessageInterval(
"remoteExitNode/ping",
{ timestamp: Date.now() / 1000 },
60000
); // send every minute
// Return client and cleanup function for potential use
return { client, stopPingInterval };
}