initial working version
This commit is contained in:
parent
0a3c9f71d8
commit
d963f7d8a8
23 changed files with 89 additions and 100 deletions
|
|
@ -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)
|
||||
);
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue