swaf/dist/components/WebSocketServerComponent.d.ts

15 lines
665 B
TypeScript
Raw Normal View History

2020-04-22 15:52:17 +02:00
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>;
}