final public function disableCrypto(): Promise
    {
        if (($resource = $this->reader->getResource()) === null) {
            return new Failure(new ClosedException('The socket has been closed'));
        }

        return Internal\disableCrypto($resource);
    }
final public function disableCrypto(): Promise
    {
        if (($resource = $this->reader->getResource()) === null) {
            return new Failure(new ClosedException('The socket has been closed'));
        }

        return Internal\disableCrypto($resource);
    }
final public function disableCrypto ( ) : Promise { if ( ( $ resource = $ this -> reader -> getResource ( ) ) === null ) { return new Failure ( new ClosedException ( 'The socket has been closed' ) ) ; } return Internal \ disableCrypto ( $ resource ) ; }
Disables encryption on this socket.

@return Promise
Disables encryption on this socket .