How to create several connections to node.js?
===

I realized the connection to the rooms through the socket.join(), socket.leave() and socket.emit('switchroom', room_id). It works perfectly. But I need to make multiple tabs (dialogue) on the page so the user can communicate in several rooms simultaneously. How can i do this? Switch the room by click on the tabs? In this case, the user will always be only in one room, and not a few.

p.s. sorry for my english