This commit is contained in:
Daniil Gentili 2019-12-13 17:27:51 +01:00
parent 069c599a7c
commit 3690339424
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 1 additions and 3 deletions

View File

@ -31,8 +31,6 @@ use Amp\Http\Client\Cookie\CookieJar;
use Amp\Http\Client\Cookie\InMemoryCookieJar;
use Amp\Http\Client\DelegateHttpClient;
use Amp\Http\Client\HttpClientBuilder;
use Amp\Http\Client\Interceptor\ModifyRequest;
use Amp\Http\Client\Interceptor\RemoveRequestHeader;
use Amp\Http\Client\Request;
use Amp\Socket\ConnectContext;
use Amp\Websocket\Client\Rfc6455Connector;

View File

@ -69,7 +69,7 @@ class WsStream implements RawStreamInterface, ProxyStreamInterface
$this->dc = $ctx->getIntDc();
$handshake = new Handshake(\str_replace('tcp://', $ctx->isSecure() ? 'wss://' : 'ws://', $ctx->getStringUri()));
$this->stream = yield ($this->connector ?? connector())->connect($handshake, $ctx->getCancellationToken());
yield $this->write($header);