Appendix E. Setting up Node.js
This appendix is provided for readers who need to set up Node.js for the chapter 4 application. You might be wondering why we chose Node.js. There are several alternative web servers that are much better suited to WebSockets than the traditional choices of Apache or IIS (IIS8 will have built-in WebSocket support). These servers share connections between threads, taking advantage of the mostly idle nature of event-driven connections. In chapter 4, you’ll be using Node.js for two reasons:
- It uses JavaScript, which you’re already familiar with.
- It has an easy-to-use library implementing the WebSocket protocol.
This appendix will walk you through installing and setting up Node.js for the chapter 4 application. ...
Get HTML5 in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.