I am using socket.io for my app and for private messaging I am using socket.to(privateId).emit('new message', {msg: data, user: socket.username});
It is sending message to private Id on receiving side my message displays but on sender socket message is not displaying. what am I doing wrong? Is there any other method to send message to sender id?
via Zunnurain Badar
No comments:
Post a Comment