diff --git a/src/stores/socket.ts b/src/stores/socket.ts index 0d5ea4c64..854a281d5 100644 --- a/src/stores/socket.ts +++ b/src/stores/socket.ts @@ -43,6 +43,11 @@ export const useSocketStore = defineStore("socket", () => { notifyStatusOrg("current", body.message, body.success); } }); + + socket.on("socket-notification", (payload) => { + let body: sockeBackup = JSON.parse(payload); + notifyStatus(body.message, body.success); + }); } function notifyStatus(message: string, success?: boolean) {