function decompress(string $data): string {
        if(!$this->context) {
            throw new \CharlotteDunois\Yasmin\WebSocket\DiscordGatewayException('No inflate context initialized');
        }
        
        $uncompressed = \inflate_add($this->context, $data);
        if($uncompressed === false) {
            throw new \CharlotteDunois\Yasmin\WebSocket\DiscordGatewayException('The inflate context was unable to decompress the data');
        }
        
        return $uncompressed;
    }
function decompress(string $data): string {
        if(!$this->context) {
            throw new \CharlotteDunois\Yasmin\WebSocket\DiscordGatewayException('No inflate context initialized');
        }
        
        $uncompressed = \inflate_add($this->context, $data);
        if($uncompressed === false) {
            throw new \CharlotteDunois\Yasmin\WebSocket\DiscordGatewayException('The inflate context was unable to decompress the data');
        }
        
        return $uncompressed;
    }
function decompress ( string $ data ) : string { if ( ! $ this -> context ) { throw new \ CharlotteDunois \ Yasmin \ WebSocket \ DiscordGatewayException ( 'No inflate context initialized' ) ; } $ uncompressed = \ inflate_add ( $ this -> context , $ data ) ; if ( $ uncompressed === false ) { throw new \ CharlotteDunois \ Yasmin \ WebSocket \ DiscordGatewayException ( 'The inflate context was unable to decompress the data' ) ; } return $ uncompressed ; }
Decompresses data.
@param string  $data
@return string
@throws \CharlotteDunois\Yasmin\WebSocket\DiscordGatewayException
Decompresses data .