feat(server): fan dm_call_end out on host ring timeout

This commit is contained in:
Jannis Braun
2026-04-23 23:19:42 +02:00
parent 6cd7728f3e
commit f6252b8ce1
6 changed files with 84 additions and 19 deletions
+4
View File
@@ -26,6 +26,7 @@ import { adminRoutes } from './routes/admin.js';
import { gifRoutes } from './routes/gif.js';
import { federationRoutes } from './routes/federation.js';
import { startFederationWorkers, stopFederationWorkers } from './utils/federationWorker.js';
import { registerCallRelayHooks } from './ws/events.js';
import { registerWebSocket } from './ws/handler.js';
import path from 'path';
@@ -124,6 +125,9 @@ async function main(): Promise<void> {
// Log ffmpeg availability at startup (so admins see the warning immediately)
checkFfmpeg();
// Register WS-layer call relay hooks (ring-timeout fan-out).
registerCallRelayHooks();
// Start federation background workers (outbox delivery, file download, health check)
startFederationWorkers();