fix websocket client port

This commit is contained in:
sy-records 2019-11-23 18:35:55 +08:00
parent 79e41e3301
commit 3bed9de510

View File

@ -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);