Server Push With Angular 5, Node, Express, and Typescript

Server Sent Events are a modern and convenient alternative to polling for receiving periodic data from a server at non predictable intervals.  This is an example I’ve been meaning to publish since the early alpha days of Angular 2, but just never seemed to get around to it.

So, the demo made it into the 2018 New Year’s Resolution list :) In addition to using Angular 5 for the client, the server code (Node/Express) was developed entirely in Typescript.

There is a good writeup on the Github page and I know what you really want is the code, so this post is short and to the point.  Go grab some code and have fun!

https://github.com/theAlgorithmist/Angular5-Server-Sent-Events

And, best wishes to all for 2018!

Comments are closed.