WebSocketListener: add app field getter
This commit is contained in:
parent
197b963e4c
commit
4291f73a55
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "wms-core",
|
||||
"version": "0.17.0",
|
||||
"version": "0.17.1",
|
||||
"description": "Node web framework",
|
||||
"repository": "git@gitlab.com:ArisuOngaku/wms-core.git",
|
||||
"author": "Alice Gaudon <alice@gaudon.pro>",
|
||||
|
@ -9,6 +9,10 @@ export default abstract class WebSocketListener<T extends Application> {
|
||||
this.app = app;
|
||||
}
|
||||
|
||||
protected getApp(): T {
|
||||
return this.app;
|
||||
}
|
||||
|
||||
public abstract path(): string;
|
||||
|
||||
public abstract async handle(socket: WebSocket, request: IncomingMessage, session: Express.SessionData): Promise<void>;
|
||||
|
Loading…
Reference in New Issue
Block a user