mira-app-server
Version:
Mira Server - standalone server application using mira-app-core
12 lines • 500 B
TypeScript
import { WebSocketRouter } from "mira-app-core";
import http from 'http';
import { MiraBackend } from "mira-app-core";
export declare class WebSocketServer {
protected wsRouter: WebSocketRouter;
protected backend: MiraBackend;
protected httpServer: http.Server;
constructor(httpServer: http.Server, backend: MiraBackend);
broadcast(event: string, data: any): void;
sendToSocket(socketId: string, event: string, data: any): void;
}
//# sourceMappingURL=WebSocketServer.d.ts.map