Book Image

HTML5 Game Development by Example: Beginner's Guide

By : Seng Hin Mak
Book Image

HTML5 Game Development by Example: Beginner's Guide

By: Seng Hin Mak

Overview of this book

Table of Contents (18 chapters)
HTML5 Game Development by Example Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
9
Building a Physics Car Game with Box2D and Canvas
Index

Installing a WebSocket server


The HTML5 WebSocket provides a client-side API to connect a browser to a backend server. This server has to support the WebSockets protocol in order to keep the connection persistent.

Installing the Node.js WebSocket server

In this section, we will download and install a server named Node.js on which we can install a WebSockets module.