Skip to content

caterinasworld/socketio-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published