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

21 lines
713 B
TypeScript

import WebSocketListener from "./WebSocketListener";
import ApplicationComponent from "./ApplicationComponent";
import Controller from "./Controller";
export default abstract class Application {
private readonly version;
private readonly controllers;
private readonly webSocketListeners;
private readonly components;
private ready;
protected constructor(version: string);
protected abstract init(): Promise<void>;
protected use(thing: Controller | WebSocketListener | ApplicationComponent<any>): void;
start(): Promise<void>;
stop(): Promise<void>;
private routes;
getWebSocketListeners(): {
[p: string]: WebSocketListener;
};
isReady(): boolean;
}