Site updated at 2015-02-25 07:29:24 UTC

This commit is contained in:
Paulus Schoutsen 2015-02-24 23:29:24 -08:00
parent 52b66642d3
commit ff2ecee0e7
23 changed files with 1002 additions and 103 deletions

View file

@ -22,7 +22,7 @@
<meta property="og:site_name" content="Home Assistant">
<meta property="og:url" content="https://home-assistant.io/blog/">
<meta property="og:type" content="website">
<meta property="og:description" content="Looking at the past February 8, 2015 Paulus Schoutsen 1 minute reading time component Comments Ever since the launch of Home Assistant you have been able to track the state of your house. But the &hellip;">
<meta property="og:description" content="Streaming updates February 24, 2015 Paulus Schoutsen 1 minute reading time frontend Comments Home Assistant has learned a new trick to get the latest information from the server: streaming updates. &hellip;">
@ -87,6 +87,78 @@
<article class="listing">
<header>
<h1 class="beta">
<a href="/blog/2015/02/24/streaming-updates/">Streaming updates</a>
</h1>
<div class="meta clearfix">
<time datetime="2015-02-24T22:41:27-08:00" pubdate data-updated="true"><i class="icon-calendar"></i> February 24, 2015</time>
<span class="byline author vcard"><i class='icon-user'></i> Paulus Schoutsen</span>
<span><i class='icon-time'></i> 1 minute reading time</span>
<span>
<i class="icon-tags"></i>
<ul class="tags unstyled">
<li><a class='category' href='/blog/categories/frontend/'>frontend</a></li>
</ul>
</span>
<a class='comments'
href="/blog/2015/02/24/streaming-updates/#disqus_thread"
>Comments</a>
</div>
</header>
<div class="entry-content clearfix">
<p>Home Assistant has learned a new trick to get the latest information from the server: streaming updates. No longer will the frontend poll every 30 seconds for updates but instead it will keep a connection open and get the latest changes pushed as soon as they happen.</p>
<p>A new toggle has been added ot the sidebar to turn streaming updates on and off. This preference will be saved on a per-browser basis using local storage. The toggle will also indicate when there is an error setting up a stream after which it will fall back to use polling.</p>
<p class='img'><img src='/images/screenshots/streaming-updates.png' /></p>
<a class="btn pull-right" href="/blog/2015/02/24/streaming-updates/#read-more">Read on &rarr;</a>
</div>
</article>
<hr>
<article class="listing">
<header>
@ -125,6 +197,8 @@
<li><a class='category' href='/blog/categories/component/'>component</a></li>
<li><a class='category' href='/blog/categories/frontend/'>frontend</a></li>
</ul>
</span>