audo-ai / magic-mic

Open Source Noise Cancellation App for Virtual Meetings
https://magicmic.ai/
352 stars 38 forks source link

Real Bidirectional Communication #55

Open gabcoh opened 3 years ago

gabcoh commented 3 years ago

Right now we're following JSON-RPC pretty closely for our ui -> server interactions, but I'm pretty sure json-rpc does not allow the server to send notifications to the client. This would be useful for us because sometimes the server makes changes that need to be reflected in the ui. Right now that is implemented using polling, but it might be better to actually just have the server send updates when it needs to. The basic infrastructure is already in the server (VirtualMicUpdate) but the ui doesn't support it. To get the ui to suport it we would need to have some sort of rust control over an event emitter in the javascript. I don't think tauri alpha has anything like this but the tauri beta might, so this might be blocked on #53.