From dad8021164ba53b2842bac551d02e70611c62786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20K=C3=A4sler?= <tom.kaesler@mni.thm.de> Date: Mon, 20 May 2019 13:14:54 +0200 Subject: [PATCH] Change ws broker Url for production --- src/app/rx-stomp.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/rx-stomp.config.ts b/src/app/rx-stomp.config.ts index 139561d1f..f36fcda1b 100644 --- a/src/app/rx-stomp.config.ts +++ b/src/app/rx-stomp.config.ts @@ -2,7 +2,8 @@ import { RxStompConfig } from '@stomp/rx-stomp'; export const ARSRxStompConfig: RxStompConfig = { // Which server? - brokerURL: `ws://${window.location.hostname}:8080/ws/websocket`, + brokerURL: (window.location.protocol === 'http:' ) ? + `ws://${window.location.hostname}:8080/ws/websocket` : `wss://${window.location.hostname}/api/ws/websocket`, connectHeaders: { login: 'guest', -- GitLab