code: def receive(self, decode=True):
          
          payload = self.socket.recv()
          payload = self.verify(payload)
          if decode:
              payload = self.decode(payload)
          return payload
docs: Receive from socket, authenticate and decode payload