swaf/dist/Application.d.ts

21 lines
713 B
TypeScript
Raw Normal View History

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