(self)
return True
Performs the operation of reading from the underlying
        connection in order to feed the stream of bytes.

        We start with a small size of two bytes to be read
        from the connection so that we can quickly parse an
        incoming frame header. Then the stream indicates
        whatever size must be read from the connection since
        it knows the frame payload length.

        It returns `False` if an error occurred at the
        socket level or during the bytes processing. Otherwise,
        it returns `True`.
Performs the operation of reading from the underlying
        connection in order to feed the stream of bytes.
Performs the operation of reading from the underlying connection in order to feed the stream of bytes .
def once(self):
        """
        Performs the operation of reading from the underlying
        connection in order to feed the stream of bytes.

        We start with a small size of two bytes to be read
        from the connection so that we can quickly parse an
        incoming frame header. Then the stream indicates
        whatever size must be read from the connection since
        it knows the frame payload length.

        It returns `False` if an error occurred at the
        socket level or during the bytes processing. Otherwise,
        it returns `True`.
        """
        if self.terminated:
            logger.debug("WebSocket is already terminated")
            return False

        s = self.stream
        sock = self.sock
        process = self.process

        try:
            b = sock.recv(self.reading_buffer_size)
        except socket.error:
            logger.exception("Failed to receive data")
            return False
        else:
            if not process(b):
                return False

        return True
def once ( self ) : if self . terminated : logger . debug ( "WebSocket is already terminated" ) return False s = self . stream sock = self . sock process = self . process try : b = sock . recv ( self . reading_buffer_size ) except socket . error : logger . exception ( "Failed to receive data" ) return False else : if not process ( b ) : return False return True