Add password to stream

This commit is contained in:
Fabian Affolter 2016-07-30 08:44:08 +02:00
parent dcd424089c
commit 1e115f7cbc
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -31,7 +31,7 @@ For more comfort put the HTML snippet below in a file `sse.html` in your `www` f
<h1>Getting Home Assistant server events</h1>
<div id="events"></div>
<script type="text/javascript">
var source = new EventSource("/api/stream");
var source = new EventSource("/api/stream?password=YOUR_PASSWORD");
source.onmessage = function(event) {
document.getElementById("events").innerHTML += event.data + "<br>";
};