瀏覽代碼

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