|
@@ -1,7 +1,7 @@
|
|
import {InjectableRxStompConfig} from '@stomp/ng2-stompjs';
|
|
import {InjectableRxStompConfig} from '@stomp/ng2-stompjs';
|
|
|
|
|
|
export const myRxStompConfig: InjectableRxStompConfig = {
|
|
export const myRxStompConfig: InjectableRxStompConfig = {
|
|
- brokerURL: `ws://${window.location.host}:${window.location.port}/ws`,
|
|
|
|
|
|
+ brokerURL: `${window.location.protocol === 'https:' ? 'wss' : 'ws'}://${window.location.host}:${window.location.port}/ws`,
|
|
|
|
|
|
connectHeaders: {
|
|
connectHeaders: {
|
|
login: 'web',
|
|
login: 'web',
|