code: function toRooms(data) {
      var i, rooms;
  
      rooms = [];
      for (i = 0; i < data.rooms.length; i++) {
        rooms.push(new Room(connection, data.rooms[i]));
      }
  
      return rooms;
    }
docs: Convert the specified response data into an array of Rooms.
  @param {Object} data The server response data.
  @return {Array.<Room>} An array of Rooms.