feat(rpc): implement arrpc's link event (#1016)

Co-authored-by: Vendicated <vendicated@riseup.net>
This commit is contained in:
Cookie
2025-02-05 14:00:40 -05:00
committed by GitHub
parent c9be618164
commit 56442ae1e9
6 changed files with 45 additions and 7 deletions

View File

@@ -26,6 +26,9 @@ export async function initArRPC() {
await sendRendererCommand(IpcCommands.RPC_INVITE, invite).then(callback);
});
server.on("link", async (data: any, deepCallback: (valid: boolean) => void) => {
await sendRendererCommand(IpcCommands.RPC_DEEP_LINK, data).then(deepCallback);
});
} catch (e) {
console.error("Failed to start arRPC server", e);
}