Don't like this style? Click here to change it! blue.css
The idea here is that servers can talk to clients which makes for more fun than simply REST APIs.
This is most of the charm of firebase, IMHO.
Let's use Glitch.com to play with a Node Stack for this one.
First I want to show you socketio
which is the most popuar websockets
wrapper out there. It is the jQuery to vanilla Javascript in the websocket landscape.
Here's our code:
Head to https://glitch.com and login with Github
Use "hello node"
Edit package.json and search for socketio and express.
Edit the server and add file index.html to /public to match the above gist.
ASIDE: Modern Web Dev
Now let's chat out what happened there.