Answers for "how to send an event to one socket in socket.io"

0

how to send an event to one socket in socket.io

// sends the event to the socket that has the specified id.
io.to(socketId).emit("event", data);
Posted by: Guest on May-20-2021

Code answers related to "how to send an event to one socket in socket.io"

Code answers related to "Javascript"

Browse Popular Code Answers by Language