public function startTransportProvider(ClientInterface $client, LoopInterface $loop)
{
$this->client = $client;
$this->loop = $loop;
$dnsResolverFactory = new \React\Dns\Resolver\Factory();
$dns = $dnsResolverFactory->createCached('8.8.8.8', $loop);
$connector = new Connector($loop, $dns);
$connector->create($this->address, $this->port)->then(function (Stream $stream) {
$stream->on('data', [$this, "handleData"]);
$stream->on('close', [$this, "handleClose"]);
$this->handleConnection($stream);
});
}