So, here's the thing. I'm writing a small web application using node.js with my partner. In this application, we need to send different data to different clients. Right now, I implemented this demand using scripts like below:
io.sockets.to(ClientId).emit();
Although the code works well, I'm still not sure if it's a proper way to implement the needs, which is, sending different data to different clients.
So, any advice? Thanks a lot!