From 7e6af834de61b253b2eba970a2a41cc769dcb1ae Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 18 Jul 2016 16:48:12 +0200 Subject: [PATCH] Add curl --- source/developers/server_sent_events.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/developers/server_sent_events.markdown b/source/developers/server_sent_events.markdown index 52dd28a42b2..86dc50952aa 100644 --- a/source/developers/server_sent_events.markdown +++ b/source/developers/server_sent_events.markdown @@ -44,6 +44,12 @@ Visit [http://localhost:8123/local/sse.html](http://localhost:8123/local/sse.htm ## {% linkable_title Examples %} +The simplest way to consume server-sent events is `curl`. + +```bash +$ curl http://localhost:8123/api/stream?api_password=MYPASS +``` + ### {% linkable_title Website %} The [home-assistant-sse](https://github.com/fabaff/home-assistant-sse) repository contains an more advanced example.