diff --git a/server/typeDefs/computerCore.ts b/server/typeDefs/computerCore.ts index 0e1425ca1..7270c0079 100644 --- a/server/typeDefs/computerCore.ts +++ b/server/typeDefs/computerCore.ts @@ -245,6 +245,15 @@ const resolver = { performAction(id, (sys: ComputerCore) => { if (state === "scanning") { sys.hackingLog.unshift("Ports scanned by fe80::4c3:2e73:2557:c71a"); + pubsub.publish("notify", { + id: uuid.v4(), + simulatorId: sys.simulatorId, + station: "Core", + type: "Hacking", + title: `Hacking Port Scan`, + body: "", + color: "info", + }); if (sys.training) { setTimeout(() => { sys.hackingState = "hacking"; @@ -264,6 +273,15 @@ const resolver = { sys.hackingLog.unshift( "Unauthorized connection established with fe80::4c3:2e73:2557:c71a", ); + pubsub.publish("notify", { + id: uuid.v4(), + simulatorId: sys.simulatorId, + station: "Core", + type: "Hacking", + title: `Hacking Connected`, + body: "", + color: "info", + }); } sys.hackingState = state; }); diff --git a/src/components/core/menubar/notificationConfig.js b/src/components/core/menubar/notificationConfig.js index fd5dfebf9..1f8ef1017 100644 --- a/src/components/core/menubar/notificationConfig.js +++ b/src/components/core/menubar/notificationConfig.js @@ -27,6 +27,7 @@ export const notifyComponents = [ "Docking", "Engines", "External Sensors", + "Hacking", "Handheld Scanner", "Interception", "Internal Comm",