Skip to content

Need A Socket.io Server Just To Send Messages Between Clients? Use Our Server Instead!

Notifications You must be signed in to change notification settings

SX-9/socketio-message-pass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socket.io Message Passing

Need A Socket.io Server Just To Send Messages Between Clients Without Setting Up A Server 🧐? Use Our FREE Server Instead 🤑!

Usage

To Use Our Server Add The Following Line To Your HTML File:

<script src="https://msg-pass.up.railway.app/socket.io/socket.io.js"></script>

Now In A Separate JS File Add The Following Line:

const socket = io("wss://msg-pass.up.railway.app");

Now Every Event You Emit Will Be Forwarded To All Connected Clients, Example:

socket.emit("myEvent", data);

// 👇 That Broadcasts This To Everyone

socket.on("myEvent", data => {
    // ...
  }
);

// 🌏 You Can Also Listen To All Events

socket.onAny((eventName, data) => {
  // ...
});

Note: Every Emitted Event Is Logged On Our Server DONT SEND SENSITIVE INFORMATION

Note2: Since This Project Is Hosted On Railway Free Tier There Might Be A Lot Of Down Time

About

Need A Socket.io Server Just To Send Messages Between Clients? Use Our Server Instead!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published