protected function registerConnector()
    {
        $this->app->singleton(ConnectorInterface::class, function ($app) {
            $loop = $app[LoopInterface::class];

            return new Connector($loop, (new DnsResolver())->create('8.8.8.8', $loop));
        });
        $this->app->alias(ConnectorInterface::class, 'ami.connector');
    }