소스 검색

revert as it was

Sergii KLiuchnyk 2 년 전
부모
커밋
cb567c11bf
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      src/instance.ts

+ 2 - 5
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();
-};
+};