I'm using socket.io 1.4.5.
if I do
io.to(socketId).emit('some msg');
the message will not be emitted.
after digging a little bit I found that I should prepend /#
before socke id.
socketRoomName = '/#' + socketId;
io.to(socketRoomName).emit('some msg');