class_docstr: A ZMQ socket in a simple blocking API
docstr: Get all messages that are currently ready. 
docstr_tok: ["Get","all","messages","that","are","currently","ready","."]
code: def get_msgs(self):
      """Get all messages that are currently ready."""
      msgs = []
      while True:
          try:
              msgs.append(self.get_msg(block=False))
          except Empty:
              break
      return msgs
  
file_path: catboost/contrib/python/jupyter-client/py2/jupyter_client/blocking/channels.py
label_desc: Use image node_id 4 for calling the ZMQSocketChannel obj's underlying member method code with example usage: obj.get_msgs() and returns: msgs