initial working version

This commit is contained in:
riqo 2021-06-16 08:42:47 -05:00
commit d963f7d8a8
23 changed files with 89 additions and 100 deletions

View file

@ -1,13 +1,13 @@
import useIpc from "@/render/composables/ipc";
import useIpc from "@/render/composables/useIpcRend";
const { post, invoke } = useIpc();
/**
*
*
* Account and auth related endpoints
*
*/
*
*/
export const invokeProfile = async (): Promise<Profile | Error> => (
await invoke('user-profile', null)
@ -24,9 +24,9 @@ export const invokeLogout = async (): Promise<void> => (
);
/**
*
*
* Audio endpoints
*
*
*/
export const postAudioChunk = (chunk: ArrayBuffer): void => (
@ -38,9 +38,9 @@ export const invokeReturnAudio = async (): Promise<ArrayBuffer[] | Error> => (
);
/**
*
*
* Crimata Platform (session) endpoints
*
*
*/
export const invokeSession = async (cid: string): Promise<Profile | Error> => (
@ -49,4 +49,4 @@ export const invokeSession = async (cid: string): Promise<Profile | Error> => (
export const postMessage = (payload: Message): void => (
post('client-message', payload)
);
);