Server Sent Events basic code example
1. Basic SSE code example
first.php
first.html
2. Basic SSE code example with jQuery
first-jQuery.html
3. Basic SSE code example with jQuery and animation
first-jquery-animate.html
4. Basic SSE - starting nodejs server code example
first-nodejs-server1.js
5. Basic SSE - with nodejs server code example
first-nodejs-server.js
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)Every right implies a responsibility; Every opportunity, an obligation, Every possession, a duty. - John D. Rockefeller