Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 861 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 861 Bytes

A Tiny AngularJS + SSE Example

Sending Server-Sent Events events into an AngularJS application in 20 lines of node.js server, 15 lines of client JS, and 5 lines of HTML.

This is heavily based on, but pared down to the essence of, the examples at:

Credit especially to @btford for the factory pattern that makes it all work.

Running

Start the node.js server:

$ node server.js

Go to http://localhost:8080 in your browser.