def get_messages_payload(self, socket, timeout=None):
try:<EOL><INDENT>msgs = socket.get_multiple_client_msgs(timeout=timeout)<EOL>data = self.encode_payload(msgs)<EOL><DEDENT>except Empty:<EOL><INDENT>data = "<STR_LIT>"<EOL><DEDENT>return data<EOL>
This will fetch the messages from the Socket's queue, and if
        there are many messes, pack multiple messages in one payload and return