Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 608 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 608 Bytes

Socket.IO Examples

To use the code in the repo:

  1. Clone the repo
  2. Run npm install to install all dependencies
  3. Navigate into one of the folders and run node server.js or nodemon server.js
  4. The application will run on localhost:5001

01 - Hello

This is a simple example with 'hello' and 'goodbye' events that are logged in the console.

02 - Circle

In this example, we broadcast a 'drag' event to move a circle elements from one client to all connected clients.

03 - Chat

In this example, we implement a chat message where multiple clients can communicate with each other.