Replies: 1 comment 3 replies
-
Hi! I'm not able to reproduce: Server: const io = require("socket.io")(3000);
io.of("/test").on("connection", socket => {
socket.broadcast.emit("hello");
}); Client: const socket = require("socket.io-client")("http://localhost:3000/test");
socket.on("hello", () => {
console.log("got hello");
}); Which version are you using? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
code
socket.broadcast.emit('someone create ',{roomList:roomList});
and all the clients in namespace "/hall"
the emit had broadcast to everyone,including the sender.
Beta Was this translation helpful? Give feedback.
All reactions