Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.07 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.07 KB

<<<<<<< HEAD

 ,-----.,--.                  ,--. ,---.   ,--.,------.  ,------.
'  .--./|  | ,---. ,--.,--. ,-|  || o   \  |  ||  .-.  \ |  .---'
|  |    |  || .-. ||  ||  |' .-. |`..'  |  |  ||  |  \  :|  `--, 
'  '--'\|  |' '-' ''  ''  '\ `-' | .'  /   |  ||  '--'  /|  `---.
 `-----'`--' `---'  `----'  `---'  `--'    `--'`-------' `------'
----------------------------------------------------------------- 

Welcome to your Node.js project on Cloud9 IDE!

This chat example showcases how to use socket.io with a static express server.

Running the server

  1. Open server.js and start the app by clicking on the "Run" button in the top menu.

  2. Alternatively you can launch the app from the Terminal:

    $ node server.js

Once the server is running, open the project in the shape of 'https://projectname-username.c9.io/'. As you enter your name, watch the Users list (on the left) update. Once you press Enter or Send, the message is shared with all connected clients.

free-code-camp

free-code-camp

c46cf41c3ed376b5fbb4213bd3274bdc8f0292dc