I use Socket.io Client:
var socket = new io.Socket(null, {port: 8081, ...
Server:
io.on('connection', function(client){ ...
Sow actually I try to do multiroom chat app - so how can I pass chat_id or something like that?
I'm on the same issue and finally decided to go with [Push-It].1
Documentation is a bit rare, but it's quite easy to use.