|
|
|
@ -195,9 +195,9 @@ function IDEContainer() {
|
|
|
|
const token = res.data;
|
|
|
|
const token = res.data;
|
|
|
|
const protocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
|
|
|
|
const protocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
|
|
|
|
let wsApi = `${protocol}://${window.location.host}/ws/v1/bpms-runtime`;
|
|
|
|
let wsApi = `${protocol}://${window.location.host}/ws/v1/bpms-runtime`;
|
|
|
|
// if (window.location.host.includes('localhost')) {
|
|
|
|
if (window.location.host.includes('localhost')) {
|
|
|
|
wsApi = `ws://192.168.5.119/ws/v1/bpms-runtime`;
|
|
|
|
wsApi = `ws://192.168.5.119/ws/v1/bpms-runtime`;
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
const uri = `${wsApi}?x-auth0-token=${token}`;
|
|
|
|
const uri = `${wsApi}?x-auth0-token=${token}`;
|
|
|
|
ws.connect(uri);
|
|
|
|
ws.connect(uri);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|