diff --git a/package.json b/package.json index 0c73943..74c879a 100644 --- a/package.json +++ b/package.json @@ -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 ", diff --git a/src/WebSocketListener.ts b/src/WebSocketListener.ts index c80b419..e0d60a3 100644 --- a/src/WebSocketListener.ts +++ b/src/WebSocketListener.ts @@ -9,6 +9,10 @@ export default abstract class WebSocketListener { 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;