You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sort of, @Devqon... my understanding is that Home Assistant also supports Server-sent Events (SSE), and so we would need to either build out a custom HTTP client implementation that could listen for SSEs, or find a C# library specifically designed for them.
Great care must be taken for this implementation, because you are effectively opening a connection and then keeping it open, which means handling opens/closes/reconnects as well as some possible threading issues. Definitely not a trivial task.
New Feature Description
It would be great to be able to receive server sent events form the endpoint /api/stream and call a callback function when a event is received.
Code Example
HA API Docs or Sample
https://developers.home-assistant.io/docs/external_api_server_sent_events
The text was updated successfully, but these errors were encountered: