Web sockets and streams (boilerplate)

Web sockets and streams (boilerplate)

Check the repository on GitHub

Streams are one of the most powerful way to express data flow operations. And the way Node implemented them is great. I recommend you to spend some time Learning them.

This boilerplate project uses shoe to add a stream interface to a websocket so you can pipe other streams from/to. It’s very simple but serves as an starting point.

In the browser shoe is also used, and browserify is used to compile.

Setup

By default it will run on port 9999

The magic of Streams allows you to connect any stream in the server or the browser, so you could be streaming UI events / sensor data / etc.

Check the repository on GitHub


If you found something useful and want to donate (click to see Bitcoin address)

Published

25 November 2015

Tags