From de08b363f5635b4a1cbab4a1ed94ec6e414311ad Mon Sep 17 00:00:00 2001 From: tekay <tom.kaesler@mni.thm.de> Date: Tue, 3 Mar 2020 12:20:03 +0100 Subject: [PATCH] Adapt to new ws gateway in proxy --- proxy.conf.json | 2 +- src/app/rx-stomp.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy.conf.json b/proxy.conf.json index 7013d453b..cc2d66deb 100644 --- a/proxy.conf.json +++ b/proxy.conf.json @@ -31,7 +31,7 @@ }, "logLevel": "debug" }, - "/api/ws": { + "/api/ws/websocket": { "target": "ws://localhost:8099", "secure": false, "pathRewrite": { diff --git a/src/app/rx-stomp.config.ts b/src/app/rx-stomp.config.ts index 74ba1265b..c1ab0b452 100644 --- a/src/app/rx-stomp.config.ts +++ b/src/app/rx-stomp.config.ts @@ -4,7 +4,7 @@ import { environment } from './../environments/environment'; export const ARSRxStompConfig: RxStompConfig = { // Which server? brokerURL: (window.location.protocol === 'http:' ) ? - `ws://${window.location.hostname}:8080/ws/websocket` : `wss://${window.location.hostname}/api/ws/websocket`, + `ws://${window.location.hostname}:/api/ws/websocket` : `wss://${window.location.hostname}/api/ws/websocket`, connectHeaders: { login: 'guest', -- GitLab