LearnBoost/socket.io — pull request #1068 by abimaelmartell (2012-11-01 21:46:00+00:00)
Title: Added inRoom method to socket

I needed to know if a socket is subscribed to a room, and i added the method to the Socket prototype
It can be used like this

socket.inRoom("some room"); // => false
socket.join("some room");
socket.inRoom("some room"); // => true