websocket chat example

Example modularized and placed into an Express server

Heroku ready


Heroku automatically configures port settings

Thus, do not rely on fixed port numbers when deploying to Heroku

Clientside, use:

socket = io();

rather than setting a specific port number:

socket = io(document.domain + ':4100');


Git: Here
Hosted: Here MIT License: Here
Original Code: Here