Send and receive messages
In the fiasco app, tools can send and receive predefined message types with the parent app.
To send a message:
ts
import { Ipc } from "@vaguevoid/tools";
Ipc.send({ kind: "loaded" });
To listen for messages with a certain kind
(message payloads will autocomplete):
ts
const unsubscribe = Ipc.listen("willShow", (msg) => {
console.log("willShow", msg);
});