mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
await to connect all sockets after register events
This commit is contained in:
parent
cc40fc7fcd
commit
0d9908a90f
@ -18,15 +18,19 @@ export default class NotificationCore extends Core {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onRuntimeEvents = {
|
||||||
|
"wsmanager:all:connected": () => {
|
||||||
|
this.ctx.cores
|
||||||
|
.get("api")
|
||||||
|
.registerSocketListeners(this.listenSockets)
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
public = {
|
public = {
|
||||||
new: this.new,
|
new: this.new,
|
||||||
close: this.close,
|
close: this.close,
|
||||||
}
|
}
|
||||||
|
|
||||||
async onInitialize() {
|
|
||||||
this.ctx.cores.get("api").registerSocketListeners(this.listenSockets)
|
|
||||||
}
|
|
||||||
|
|
||||||
async new(notification) {
|
async new(notification) {
|
||||||
NotificationUI.notify(notification)
|
NotificationUI.notify(notification)
|
||||||
NotificationFeedback.feedback(notification)
|
NotificationFeedback.feedback(notification)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user