21 lines
713 B
TypeScript
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;
|
|
}
|