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.
var ServerEventClient = ClientFactory.GetClient<ServerEventClient>();
ServerEventClient.Listen(ServerEventCallback());
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