a RESTful backend built in FastAPI, connected through JWT tokens and APIs. But I was wondering how could I enable push notifications to the frontend, e.g. "Your results are ready" (in case I have a function that takes longer than usual) or any other sort of notifications like "You have got a message" What's the architecture, system design or technical name for what I want to achieve?
websockets?
i’d prefer SSE
I just had a look to websockets and seems cool but the socket is open to everyone instead of user-based.
you can control that ig
ofcourse you can
https://blog.stratumsecurity.com/2016/06/13/websockets-auth/
Обсуждают сегодня