feat(push): add phase7 offline push queue, worker, APIs, and simulator inbox

This commit is contained in:
2026-01-24 15:20:00 +00:00
parent bccc049fc3
commit 6d6c77f77e
9 changed files with 392 additions and 6 deletions

View File

@@ -13,9 +13,11 @@ import commandsRoutes from './routes/commands';
import eventsRoutes from './routes/events';
import streamsRoutes from './routes/streams';
import recordingsRoutes from './routes/recordings';
import pushNotificationsRoutes from './routes/push-notifications';
import { setupRealtimeGateway } from './realtime/gateway';
import { ensureMinioBucket } from './utils/minio';
import { startRecordingsWorker } from './workers/recordings';
import { startPushWorker } from './services/push';
const app = express();
const openApiDocument = buildOpenApiDocument();
@@ -42,6 +44,7 @@ app.use('/commands', commandsRoutes);
app.use('/events', eventsRoutes);
app.use('/streams', streamsRoutes);
app.use('/recordings', recordingsRoutes);
app.use('/push-notifications', pushNotificationsRoutes);
app.use((err: unknown, _req: express.Request, res: express.Response, _next: express.NextFunction) => {
console.error(err);
@@ -61,6 +64,7 @@ const start = async () => {
setupRealtimeGateway(server);
startRecordingsWorker();
startPushWorker();
server.listen(port, () => {
console.log(`Server is running on port ${port}`);