Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Dev0ps's avatar

How to send a Broadcast message to only specified user ID in socket.io

Hi friends I am creating a messenger application where I am using socket.io to Broadcast message in real time but my message is broadcast to all other users including the sender so I can send receiver ID in the parameter and now how I can broadcast message to only receiver ID in socket.io server node JS.

0 likes
2 replies

Please or to participate in this conversation.