From a72e4fc60e17e4d7a4c6b7a4804cf61885934fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20R=C3=B6=C3=9Fger?= Date: Sun, 29 Mar 2020 23:44:24 +0200 Subject: [PATCH] fix for #170 windows paths --- dist/src/instance.js | 2 +- src/instance.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/src/instance.js b/dist/src/instance.js index acb0af8..ca142e9 100644 --- a/dist/src/instance.js +++ b/dist/src/instance.js @@ -25,7 +25,7 @@ exports.createInstance = ({ app, server, options }) => { }); app.use(options.path, api); //use mountpath for WS server - const customConfig = Object.assign(Object.assign({}, config), { path: path_1.default.join(app.path(), options.path, '/') }); + const customConfig = Object.assign(Object.assign({}, config), { path: path_1.default.posix.join(app.path(), options.path, '/') }); const wss = new webSocketServer_1.WebSocketServer({ server, realm, diff --git a/src/instance.ts b/src/instance.ts index 798c339..1cd032e 100644 --- a/src/instance.ts +++ b/src/instance.ts @@ -34,7 +34,7 @@ export const createInstance = ({ app, server, options }: { app.use(options.path, api); //use mountpath for WS server - const customConfig = { ...config, path: path.join(app.path(), options.path, '/') }; + const customConfig = { ...config, path: path.posix.join(app.path(), options.path, '/') }; const wss: IWebSocketServer = new WebSocketServer({ server,