Skip to content

nichosta/websocket-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

websocket-chat

Sample experiment showing how WebSockets can be used to create a simple chat room.

How to use

To host server

  1. Clone or download code to your computer. Extract if necessary.
  2. cd into folder.
  3. Run node test.js.

To view chatroom

  1. In line 1 of client.js, change 127.0.0.1 to the IP of the computer the server is being hosted on.
  2. Open index.html.
  3. Do stuff.