def receive(self):
        # If the websocket was terminated and there are no messages
        # left in the queue, return None immediately otherwise the client
        # will block forever
        if self.terminated and self.messages.empty():
            return None
        message = self.messages.get()
        if message is StopIteration:
            return None
        return message
Returns messages that were stored into the
dataset/ETHPy150Open Lawouach/WebSocket-for-Python/ws4py/client/geventclient.py/WebSocketClient.receive