rivenmedia / riven-frontend

Source code for Riven's frontend
https://debrid.wiki
GNU General Public License v3.0
14 stars 7 forks source link

[Feature request] Add websocket support for updating the item states #113

Open filiptrplan opened 3 days ago

filiptrplan commented 3 days ago

We could make the website more reactive and leverage websockets to listen for events and refresh the pages when the state of items changes.

dreulavelle commented 3 days ago

I see this being rather annoying with the constant refreshes?

filiptrplan commented 3 days ago

I see this being rather annoying with the constant refreshes?

SvelteKit can invalidate the data provided by the server and refetch the updated data without actually refreshing the page. I just used the word "refresh", "refetch" would be more appropriate

AyushSehrawat commented 3 days ago

We could make the website more reactive and leverage websockets to listen for events and refresh the pages when the state of items changes.

Current websockets implementation kinda sucks, i am converting websockets to sse (server side events). We can just have some api call every x second to see if new data 🤔