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