Skip to content

Commit

Permalink
fix: [PubSub] encode option
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb33300 committed Jun 10, 2024
1 parent 671b37b commit ca5dadb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PubSubClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ca5dadb

Please sign in to comment.