From cb567c11bf806c47561c3432cb1f6a75deb615bc Mon Sep 17 00:00:00 2001 From: Sergii KLiuchnyk Date: Mon, 7 Nov 2022 11:22:18 +0200 Subject: [PATCH] revert as it was --- src/instance.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/instance.ts b/src/instance.ts index 9be438c..0b8f522 100644 --- a/src/instance.ts +++ b/src/instance.ts @@ -34,10 +34,7 @@ export const createInstance = ({ app, server, options }: { app.use(options.path, api); //use mountpath for WS server - const customConfig = { - ...config, - path: path.posix.join(app.path(), options.path, '/'), - }; + const customConfig = { ...config, path: path.posix.join(app.path(), options.path, '/') }; const wss: IWebSocketServer = new WebSocketServer({ server, @@ -75,4 +72,4 @@ export const createInstance = ({ app, server, options }: { messagesExpire.startMessagesExpiration(); checkBrokenConnections.start(); -}; +}; \ No newline at end of file