diff --git a/src/PubSubClient.php b/src/PubSubClient.php index 926ce1b..53d0100 100644 --- a/src/PubSubClient.php +++ b/src/PubSubClient.php @@ -196,6 +196,10 @@ public function __construct(array $config = []) $config['universeDomain'] ); + if (isset($config['encode'])) { + $this->encode = (bool) $config['encode']; + } + $this->projectId = $this->detectProjectId($config); $this->clientConfig = $config;