This commit is contained in:
Timothy Jaeryang Baek
2026-08-25 12:22:19 -04:00
parent 2d2bcb5332
commit 3c1017f6c3
5 changed files with 31 additions and 8 deletions
+1
View File
@@ -355,6 +355,7 @@ type Config = {
enable_version_update_check: boolean;
enable_pyodide_file_persistence?: boolean;
folder_max_file_count?: number;
websocket_heartbeat_interval?: number | null;
};
oauth: {
providers: {
+9 -7
View File
@@ -213,13 +213,15 @@
}
}
// Send heartbeat every 30 seconds
heartbeatInterval = setInterval(() => {
if (_socket.connected) {
console.log('Sending heartbeat');
_socket.emit('heartbeat', {});
}
}, 30000);
heartbeatInterval = setInterval(
() => {
if (_socket.connected) {
console.log('Sending heartbeat');
_socket.emit('heartbeat', {});
}
},
($config?.features?.websocket_heartbeat_interval ?? 30) * 1000
);
if (deploymentId !== null) {
WEBUI_DEPLOYMENT_ID.set(deploymentId);