socketio / socket.io-mongo-adapter

The Socket.IO MongoDB adapter, allowing to broadcast events between several Socket.IO servers
https://socket.io
MIT License
25 stars 8 forks source link

unable to emit socket event to a particular socket id #14

Closed shubh-am8 closed 7 months ago

shubh-am8 commented 1 year ago

without using mongo adapter i am very easily emit events to specific socket id so that i know socket event triggered to desired client, but now i am using mongo adapter i had tried almost every possible way to do that still don't know how can i emit the event to a specific socket id connected from any socket server in autoscale group.

darrachequesne commented 10 months ago

Hi!

Sorry for the delay. Were you able to find a solution?

The following should work properly:

io.to(theSocketId).emit("ping");
darrachequesne commented 7 months ago

Closed due to inactivity, please reopen if needed.