A small Server Sent Events demo for San Diego JS Meetup using Node, HTML, JavaScript, CSS. I also wrote a post on my website about this topic wihich includes a video of me presenting about it at the Meetup.
Slides can be found here.
The following instructions assume Mac OS / Linux system with Python installed (to provide a simple web server).
$ git clone https://github.com/simonprickett/server-sent-events-demo.git
$ cd server-sent-events-demo
$ cd src/server
$ npm install
$ npm start
$ cd src/client
$ python -m SimpleHTTPServer
or...
$ cd src/client
$ python3 -m http.server
Then point a browser at http://localhost:8000/
.