feat(push): add phase7 offline push queue, worker, APIs, and simulator inbox
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user