Server Sent Events fx code example - part ll
1. SSE fx client - server structured code example.
fxpair1.structured.php
fxserver1.structured.php
fxclient1.basic.structured.html
2. SSE fx client - server with history code example.
fxserver2.structured.php
fxclient2.history.html
SSE Notes
-
Object.keys
is available in all browsers where SSE is also available. When we start adding fallbacks we will need a polyfill for IE8 and earlier. The polyfill is slower: it is anO(n)
algorithm (where n is the number of keys), whereas a nativeObject.keys
should beO(1)
. -
With persistent storage we can store all the data that is streamed to us, opening up a world of possibilities: tables, real-time charts, client-side analysis using the latest machine learning technologies, and so on.
Reference :
-
Data Push Apps With HTML5 SSE: Pragmatic Solutions for Real-World Clients, Darren Cook, O’Reilly Media, Mar 2014. isbn:9781430264484, isbn:9781449371937, amazon:1449371930, google:7gYiAwAAQBAJ
Post by: Anonymoussc (@anonymoussc)We’re entering a new world in which data may be more important than software. - Tim O’Reilly