Random chat with 2 users at a time (Socket.io)
问题 I just started learning NodeJS and Socket.io ... Until now I have this demo code, from official socket.io site: http://socket.io/demos/chat/ I am able to get the unique client's ID of each user (socket) which connects, I am still trying to figure out, How can I make my code to only connect with 1 random user at a time when somebody runs the application. I just want to make random chat like Omegle http://www.omegle.com/ Only 2 users should randomly connect and chat with each other till they re