class_docstr: Class for a person that can act in a ParlAI world via websockets.
docstr: Put data into the message queue.
  
  Args:
      message: dict. An incoming websocket message. See the chat_services
          README for the message structure.
docstr_tok: ["Put","data","into","the","message","queue",".","Args",":","message",":","dict",".","An","incoming","websocket","message",".","See","the","chat_services","README","for","the","message","structure","."]
code: def put_data(self, message):
      """
      Put data into the message queue.
  
      Args:
          message: dict. An incoming websocket message. See the chat_services
              README for the message structure.
      """
      logging.info(f"Received new message: {message}")
      action = {
          "episode_done": False,
          "text": message.get("text", ""),
          "payload": message.get("payload"),
      }
  
      self._queue_action(action, self.action_id)
      self.action_id += 1
  
imports: import logging
  from parlai.chat_service.core.agents import ChatServiceAgent
label_desc: Use image node_id 3 for calling the WebsocketAgent obj's underlying member method code with example usage: obj.put_data(message) without return types