code: def _read_from_socket(self):
          
          if not self.use_ssl:
              if not self.socket:
                  raise socket.error('connection/socket error')
              return self.socket.recv(MAX_FRAME_SIZE)
  
          with self._rd_lock:
              if not self.socket:
                  raise socket.error('connection/socket error')
              return self.socket.read(MAX_FRAME_SIZE)
docs: Read data from the socket.
  
          :rtype: bytes