diff --git a/packages/core-realtime/src/realtime-server.interface.ts b/packages/core-realtime/src/realtime-server.interface.ts new file mode 100644 index 0000000..30cbbd8 --- /dev/null +++ b/packages/core-realtime/src/realtime-server.interface.ts @@ -0,0 +1,16 @@ +import type { Server as HttpServer } from "node:http"; +import type { Server as IOServer } from "socket.io"; +import type { IRealtimeAuthenticator } from "./realtime-authenticator.interface"; +import type { IRealtimeHandlerRegistry } from "./realtime-handler-registry"; + +export type IRealtimeServerOptions = { + httpServer: HttpServer; + io: IOServer; + authenticator: IRealtimeAuthenticator; + registry: IRealtimeHandlerRegistry; +}; + +export interface IRealtimeServer { + start(): Promise; + stop(): Promise; +}