From 4291f73a558e9c6f9735ab52e947683a4d8b1163 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sun, 19 Jul 2020 12:21:56 +0200 Subject: [PATCH] WebSocketListener: add app field getter --- package.json | 2 +- src/WebSocketListener.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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;