src/danog/MadelineProto/Stream/MTProtoTransport/FullStream.php
public function connect(ConnectionContext $ctx, string $header = ''): Promise
    {
        $this->in_seq_no = -1;
        $this->out_seq_no = -1;
        $this->stream = new HashedBufferedStream();
        $this->stream->setExtra('crc32b_rev');

        return $this->stream->connect($ctx, $header);
    }
public function connect(ConnectionContext $ctx, string $header = ''): Promise
    {
        $this->in_seq_no = -1;
        $this->out_seq_no = -1;
        $this->stream = new HashedBufferedStream();
        $this->stream->setExtra('crc32b_rev');

        return $this->stream->connect($ctx, $header);
    }
public function connect ( ConnectionContext $ ctx , string $ header = '' ) : Promise { $ this -> in_seq_no = - 1 ; $ this -> out_seq_no = - 1 ; $ this -> stream = new HashedBufferedStream ( ) ; $ this -> stream -> setExtra ( 'crc32b_rev' ) ; return $ this -> stream -> connect ( $ ctx , $ header ) ; }
Stream to use as data source.

@param ConnectionContext $ctx

@return Promise
Stream to use as data source .