Socket.io on the internet is the realization of a chat room … after reading English documents for half a day, and Baidu … can’t think of a customer service function … ask for advice.
N users open one [Web page], open a connection [Send] Information to [Customer service web page]. Customer Service [Received differently], and then how [Distribute different] Information to [Different] users?
This, big brother, after solving, also tell me. . . I only have simple chat rooms. . . I thought about this problem at the beginning, but then I was busy and let it go. .https://github.com/maozhenggang/sockiet-nettyThis is the address and java server. . You can also see.