improved service and broadcast urls
This commit is contained in:
parent
be9273af73
commit
6e46e96078
|
@ -2,14 +2,21 @@ class CCPExecutionMonitor extends HTMLElement {
|
|||
|
||||
#boot = null;
|
||||
#rootdoc = null;
|
||||
#broadcasturl = "wss://nubis1.int.d4science.net:8080/ws/notification";
|
||||
#serviceurl = null;
|
||||
#broadcasturl = null;
|
||||
#executions = [];
|
||||
#socket = null;
|
||||
|
||||
constructor(){
|
||||
super()
|
||||
this.#boot = document.querySelector("d4s-boot-2")
|
||||
this.#rootdoc = this.attachShadow({ "mode" : "open"})
|
||||
this.#rootdoc = this.attachShadow({ "mode" : "open"})
|
||||
this.#serviceurl = this.getAttribute("serviceurl")
|
||||
this.#broadcasturl = this.getAttribute("broadcasturl")
|
||||
if(!this.#broadcasturl){
|
||||
this.#broadcasturl = this.#serviceurl.replace(/^http/, "ws")
|
||||
}
|
||||
this.#broadcasturl = this.#broadcasturl + "/ws/notification"
|
||||
this.connectBroadcast()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue