/WebSocketChat

A chat room & client using node.js + socket.io, as an example for 315 class.

Primary LanguageJavaScript

WebSocketChat

A chat service using node.js + express + socket.io.

Installation

  1. Install node from https://nodejs.org.
  2. Run npm install to install dependencies.
  3. Run node server.js to start the server.
  4. Open browser and point to http://localhost:12121 to see the interface.

Debugging the server

  1. Start server with node --debug server.js
  2. In a different console npm install -g node-inspector
  3. Run node inspector (i.e. node-inspector).
  4. Goto [http://127.0.0.1:8080/?port=5858] to see the node server debugger.