#How to get live data propagated to the frontend?

6 messages · Page 1 of 1 (latest)

sick dust
#

Hi I was wondering what the best way would be to push new data to the frontend that gets generated from my rust code.

For example, imagine you have a function that listens to new updates from a particular websocket (for example an email/messaging service). How would I then pass that to the frontend without having a user to manually invoke a tauri command func?

vapid walrus
#

a pulling mechanism or a internal websocket connection

tawdry dagger
#

If the payloads get bigger you can send events that trigger the frontend to fetch something from a custom protocol

#

if you want to use tauri specific apis

#

alternatively something like websockets as mentioned by golden_water work too