 
   # @private
   send : (id, args...) ->
-    @server.nsp.in(id).emit args...
+    @server.nsp.in(id)?.emit args...
+
+  broadcast : (id, roomName, args...) ->
+    @server.nsp.connected[id]?.broadcast.in(roomName)?.emit args...
 
   # @private
   isInRoom : (id, roomName) ->

                if sid != id
                  @send sid, 'roomJoinedEcho', roomName, njoined
              if @enableUserlistUpdates and njoined == 1
                @send roomName, 'roomUserJoined', roomName, @username
              cb null, njoined

  # @private

                if sid != id
                  @send sid, 'roomLeftEcho', roomName, njoined
              if @enableUserlistUpdates and njoined == 0
                @broadcast id, roomName, 'roomUserLeft', roomName, @username
              cb null, njoined

  # @private
