Skip to content

Commit

Permalink
websocket mask
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed May 25, 2019
1 parent bd92ca6 commit bcd481e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
Expand Down

0 comments on commit bcd481e

Please sign in to comment.