mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-04 17:56:38 +00:00
Fix ws reconnect and change create site
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user