Technical aspect:
The following code resolves the ip & creates the connection:
$dnsResolverFactory = new React\Dns\Resolver\Factory(); $dns = $dnsResolverFactory->createCached('8.8.8.8', $loop); $connector = new React\SocketClient\Connector($loop, $dns);
...
$connector->create($domain, 5222)->then($xmpp_behaviour);
While React DNS is able to lookup SRV records (https://github.com/reactphp/dns/blob/master/src/Resolver/Resolver.php), socket-client uses only the A record (https://github.com/reactphp/socket-client/blob/master/src/Connector.php)
Technical aspect:
The following code resolves the ip & creates the connection:
$dnsResolverFactory = new React\Dns\ Resolver\ Factory( ); tory->createCac hed('8. 8.8.8', $loop); ent\Connector( $loop, $dns);
$dns = $dnsResolverFac
$connector = new React\SocketCli
...
$connector- >create( $domain, 5222)-> then($xmpp_ behaviour) ;
While React DNS is able to lookup SRV records (https:/ /github. com/reactphp/ dns/blob/ master/ src/Resolver/ Resolver. php), /github. com/reactphp/ socket- client/ blob/master/ src/Connector. php)
socket-client uses only the A record (https:/