To use the code in the repo:
- Clone the repo
- Run
npm install
to install all dependencies - Navigate into one of the folders and run
node server.js
ornodemon server.js
- The application will run on
localhost:5001
This is a simple example with 'hello' and 'goodbye' events that are logged in the console.
In this example, we broadcast a 'drag' event to move a circle elements from one client to all connected clients.
In this example, we implement a chat message where multiple clients can communicate with each other.