Update.
This commit is contained in:
parent
188a1e6178
commit
26210f8c09
@ -78,7 +78,7 @@ class Page {
|
||||
}
|
||||
|
||||
class RESTClient {
|
||||
debug = true
|
||||
debug = false
|
||||
|
||||
async get(url, params){
|
||||
params = params ? params : {}
|
||||
@ -276,7 +276,6 @@ class Socket extends EventHandler {
|
||||
})
|
||||
}
|
||||
onData(data){
|
||||
console.debug("Data received",data)
|
||||
if(data.callId){
|
||||
this.emit(data.callId, data.data)
|
||||
}
|
||||
@ -331,7 +330,6 @@ class App extends EventHandler {
|
||||
this.rpc = this.ws.client
|
||||
const me = this
|
||||
this.ws.addEventListener("channel-message", (data) => {
|
||||
console.debug("App channel message!",data)
|
||||
me.emit(data.channel_uid,data)
|
||||
})
|
||||
}
|
||||
@ -350,7 +348,8 @@ class App extends EventHandler {
|
||||
}))
|
||||
|
||||
}
|
||||
return await Promise.all(promises)
|
||||
//return await Promise.all(promises)
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user