From cffeedd6b567cb3401b863f8dec6016c2757e841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 21 Jul 2024 15:23:31 +0200 Subject: [PATCH] undo ws change on client. --- client/src/component/internal/reconnector/websocket.ts | 2 +- client/vite.config.ts | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/client/src/component/internal/reconnector/websocket.ts b/client/src/component/internal/reconnector/websocket.ts index f1b356a8..fd09a06e 100644 --- a/client/src/component/internal/reconnector/websocket.ts +++ b/client/src/component/internal/reconnector/websocket.ts @@ -34,7 +34,7 @@ export class WebsocketReconnector extends ReconnectorAbstract { } let url = this._state.url - url = url.replace(/^http/, 'ws').replace(/\/+$/, '') + '/ws' + url = url.replace(/^http/, 'ws').replace(/\/+$/, '') + '/api/ws' const token = this._state.token if (token) { diff --git a/client/vite.config.ts b/client/vite.config.ts index 60aba53d..acf37696 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -16,11 +16,6 @@ export default defineConfig({ server: { port: 3001, proxy: process.env.NEKO_HOST ? { - '/ws': { - target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/', - changeOrigin: true, - ws: true - }, '/api': { target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/', changeOrigin: true,