issues
search
fusion44
/
blitz_api
A management backend for the RaspiBlitz project written in Python / FastAPI
MIT License
18
stars
18
forks
source link
use websockets instead of sse
#252
Open
cstenglein
opened
3 months ago
cstenglein
commented
3 months ago
Advantages:
better integration with FastAPI
https://fastapi.tiangolo.com/advanced/websockets/
Authentication would be easier without workarounds
no limitation on connection when not on HTTP/2 (see
https://developer.mozilla.org/en-US/docs/Web/API/EventSource
)
Also possible to send messages directly (e.g. when forcing an update, getting other messages)
Advantages: