Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
jquery
LICENSE
README.markdown
browser_client_jquery.js
browser_client_yui.js
client.js
index.html
index_yui.html
server.js

README.markdown

Simple chat using node.js

Just to play with node.js I wrote this very simple chat.

It consists of a server (server.js) which manages the chat. Then there is a command line interface client (client.js) and a web-client (index.html).

The command line client simply reads a message (one line) from stdin and sends it to all other clients. Received messages are written to stdout.

The web-client uses jQuery with this window plugin to provide chat windows.

INSTALLATION

  • Install node.js
  • Install npm
  • Install the required libraries:
    • npm install dnode
    • npm install connect
    • npm install browserify
    • npm install lazy
  • Clone the repository: git clone git://github.com/patsp/node-chat.git

USAGE

Start the server...

    $ node server.js

Then run a client form the command line...

    $ node client.js

and/or open the browser at localhost:8080, enter a name and start the chat to use the web-client.

Something went wrong with that request. Please try again.