arrpc: migrate from websocket + plugin to electron ipc

This commit is contained in:
Vendicated
2023-10-13 04:00:28 +02:00
parent c445c6194f
commit 0d93e08e99
4 changed files with 16 additions and 13 deletions

View File

@@ -58,5 +58,10 @@ export const VesktopNative = {
},
capturer: {
getLargeThumbnail: (id: string) => invoke<string>(IpcEvents.CAPTURER_GET_LARGE_THUMBNAIL, id)
},
arrpc: {
onActivity(cb: (data: string) => void) {
ipcRenderer.on(IpcEvents.ARRPC_ACTIVITY, (_, data: string) => cb(data));
}
}
};