Files
socket.io/examples/chat
Andrew Patton 001373ee17 Override default browser font-family for inputs
For consistent typography, explicitly declare font-family stack for `input` in addition to `html` (in Chrome and Safari on mac, the input will otherwise use default font for such elements, like Lucida Grande)
2014-06-28 13:14:33 -04:00
..

Socket.IO Chat

A simple chat demo for socket.io

How to use

$ cd socket.io
$ npm install
$ cd examples/chat
$ npm install
$ node .

And point your browser to http://localhost:3000. Optionally specify a port by supplying the PORT env variable.

Features

  • Multiple users can join a chat room by entering a unique username on website load.
  • Users can type chat messages to the chat room
  • A notification is sent to all users when a user joins or leaves the chatroom