I am using socket io for chatting but not able to send message to particular users message is sending to all users in group but i want to send message for a single specific user
any solutions for this
Send response to all clients except sender
Tried this link
socket.broadcast.emit('new message', { userId: userId, companyId: companyId, message: data }); });