mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-05 05:07:58 +08:00
fix websocket client port
This commit is contained in:
parent
79e41e3301
commit
3bed9de510
@ -36,6 +36,10 @@ class Client
|
||||
$port = $uri->getPort();
|
||||
$ssl = $uri->getScheme() === 'wss';
|
||||
|
||||
if (empty($port)) {
|
||||
$port = $ssl ? 443 : 80;
|
||||
}
|
||||
|
||||
$this->client = new Coroutine\Http\Client($host, $port, $ssl);
|
||||
|
||||
parse_str($this->uri->getQuery(), $query);
|
||||
|
Loading…
Reference in New Issue
Block a user