swaf/dist/components/WebSocketServerComponent.d.ts
2020-04-22 17:49:58 +02:00

15 lines
665 B
TypeScript

import ApplicationComponent from "../ApplicationComponent";
import { Express, Router } from "express";
import ExpressAppComponent from "./ExpressAppComponent";
import Application from "../Application";
import RedisComponent from "./RedisComponent";
export default class WebSocketServerComponent extends ApplicationComponent<void> {
private readonly application;
private readonly expressAppComponent;
private readonly storeComponent;
private wss?;
constructor(application: Application, expressAppComponent: ExpressAppComponent, storeComponent: RedisComponent);
start(app: Express, router: Router): Promise<void>;
stop(): Promise<void>;
}