Sample experiment showing how WebSockets can be used to create a simple chat room.
- Clone or download code to your computer. Extract if necessary.
cd
into folder.- Run
node test.js
.
- In line 1 of
client.js
, change127.0.0.1
to the IP of the computer the server is being hosted on. - Open
index.html
. - Do stuff.