code: def publishToRoom(self, roomId, name, data, userList=None):
          
          if userList is None:
              userList = self.getRoom(roomId)
  
          # Publish data to all room users
          logging.debug("%s: broadcasting (name: %s, data: %s, number of users: %s)" % (self._gcls(), name, data, len(userList)))
          self.broadcast(userList, {
              "name": name,
              "data": SockJSRoomHandler._parser.encode(data)
          })
docs: Publish to given room data submitted