Skip to content

Read /api/stream to receive server events #7

@fabiolima1

Description

@fabiolima1

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

var ServerEventClient = ClientFactory.GetClient<ServerEventClient>();
ServerEventClient.Listen(ServerEventCallback());

HA API Docs or Sample

https://developers.home-assistant.io/docs/external_api_server_sent_events

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions