Merge remote-tracking branch 'origin/main' into new_architecture

This commit is contained in:
riqo 2021-06-19 11:30:29 -05:00
commit ab487e4f5e
9 changed files with 695 additions and 1 deletions

23
src/ipcRend/session.ts Normal file
View file

@ -0,0 +1,23 @@
import { useIpc } from "@/modules/ipc";
import { ClientMessage } from "@/types";
const { post } = useIpc();
export const postMount = (): void => (
post("app-mounted", null)
);
export const postInitSession = (): void => (
post("init-session", null)
);
export const postMessage = (payload: ClientMessage): void => (
post('client-message', payload)
);