Skip to content
Snippets Groups Projects
Commit ba09b5db authored by Tom Käsler's avatar Tom Käsler
Browse files

Merge branch 'fix-ws' into 'master'

Adapt to new ws gateway in proxy

See merge request arsnova/frag.jetzt!306
parents cf3e2dcc de08b363
No related merge requests found
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
}, },
"logLevel": "debug" "logLevel": "debug"
}, },
"/api/ws": { "/api/ws/websocket": {
"target": "ws://localhost:8099", "target": "ws://localhost:8099",
"secure": false, "secure": false,
"pathRewrite": { "pathRewrite": {
......
...@@ -4,7 +4,7 @@ import { environment } from './../environments/environment'; ...@@ -4,7 +4,7 @@ import { environment } from './../environments/environment';
export const ARSRxStompConfig: RxStompConfig = { export const ARSRxStompConfig: RxStompConfig = {
// Which server? // Which server?
brokerURL: (window.location.protocol === 'http:' ) ? 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: { connectHeaders: {
login: 'guest', login: 'guest',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment