feat: add authenticated realtime presence
This commit is contained in:
@@ -12,6 +12,7 @@ import { createFlightsService, type FlightsService } from "./flights/index.ts";
|
||||
import { createMarkerStore, type MarkerStore } from "./markers/store.ts";
|
||||
import { createOfficeStore, type OfficeStore } from "./offices/store.ts";
|
||||
import { createPresenceStore, type PresenceStore } from "./presence/store.ts";
|
||||
import { createRealtimeService, type RealtimeService } from "./realtime/index.ts";
|
||||
import { createSatellitesService, type SatellitesService } from "./satellites/index.ts";
|
||||
import { createWeatherService, type WeatherService } from "./weather/index.ts";
|
||||
import type { Config } from "./config.ts";
|
||||
@@ -24,6 +25,7 @@ export interface Services {
|
||||
markers: MarkerStore;
|
||||
offices: OfficeStore;
|
||||
presence: PresenceStore;
|
||||
realtime: RealtimeService;
|
||||
auth: AuthService;
|
||||
/** Epoch milliseconds, for `uptimeSeconds` on the health body. */
|
||||
startedAt: number;
|
||||
@@ -43,6 +45,7 @@ export function createServices(config: Config, log: ServiceLog): Services {
|
||||
markers: createMarkerStore(config, log),
|
||||
offices: createOfficeStore(config.offices.dir),
|
||||
presence: createPresenceStore(config.presence.dir),
|
||||
realtime: createRealtimeService(),
|
||||
auth: createAuth(config.auth),
|
||||
startedAt: Date.now(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user