feat(core-realtime): IRealtimeServer interface
This commit is contained in:
16
packages/core-realtime/src/realtime-server.interface.ts
Normal file
16
packages/core-realtime/src/realtime-server.interface.ts
Normal file
@@ -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<void>;
|
||||
stop(): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user