mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +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 = {
|
||||
new: this.new,
|
||||
close: this.close,
|
||||
}
|
||||
|
||||
async onInitialize() {
|
||||
this.ctx.cores.get("api").registerSocketListeners(this.listenSockets)
|
||||
}
|
||||
|
||||
async new(notification) {
|
||||
NotificationUI.notify(notification)
|
||||
NotificationFeedback.feedback(notification)
|
||||
|
Loading…
x
Reference in New Issue
Block a user