solara
solara copied to clipboard
[question] live updates/websocket
Hello. I would like to know if it is possible to trigger updates to the frontend through websockets with solara.
Something like this, for example: https://github.com/OpenChemistry/distiller/blob/main/frontend/distiller/src/features/notifications/index.ts#L76
Hi,
does https://solara.dev/examples/general/live_update help you? Solara already has a websocket connection, so no need to create another one. Note that instead of use_thread you can also now use https://solara.dev/api/use_task or https://solara.dev/api/task
Regards,
Maarten