diff --git a/src/HttpClient.php b/src/HttpClient.php index d006d2d..3247461 100644 --- a/src/HttpClient.php +++ b/src/HttpClient.php @@ -182,8 +182,9 @@ public function exec(?float $timeout = null):Response return $response; } - public function upgrade():bool + public function upgrade(bool $mask = true):bool { + $this->clientSetting['websocket_mask'] = $mask; $client = $this->createClient(); return $client->upgrade($this->getUri($this->url->getPath(),$this->url->getQuery())); }