Skip to content

Commit 43779e3

Browse files
committed
Update README
1 parent 027016f commit 43779e3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
[![Software License][ico-license]](LICENSE.md)
55
[![Total Downloads][ico-downloads]][link-downloads]
66

7-
This package provides an asynchronous MQTT client built on the [React socket client](https://github.com/reactphp/socket-client). All client methods return a promise which is fulfilled if the operation succeeded or rejected if the operation failed. Incoming messages of subscribed topics are delivered via the "message" event.
8-
7+
This package provides an asynchronous MQTT client built on the [React socket](https://github.com/reactphp/socket) library. All client methods return a promise which is fulfilled if the operation succeeded or rejected if the operation failed. Incoming messages of subscribed topics are delivered via the "message" event.
8+
99
## Install
1010

1111
Via composer:
@@ -27,14 +27,14 @@ use BinSoul\Net\Mqtt\DefaultMessage;
2727
use BinSoul\Net\Mqtt\DefaultSubscription;
2828
use BinSoul\Net\Mqtt\Message;
2929
use BinSoul\Net\Mqtt\Subscription;
30-
use React\SocketClient\DnsConnector;
31-
use React\SocketClient\TcpConnector;
30+
use React\Socket\DnsConnector;
31+
use React\Socket\TcpConnector;
3232

3333
include 'vendor/autoload.php';
3434

3535
// Setup client
36-
$loop = React\EventLoop\Factory::create();
37-
$dnsResolverFactory = new React\Dns\Resolver\Factory();
36+
$loop = \React\EventLoop\Factory::create();
37+
$dnsResolverFactory = new \React\Dns\Resolver\Factory();
3838
$connector = new DnsConnector(new TcpConnector($loop), $dnsResolverFactory->createCached('8.8.8.8', $loop));
3939
$client = new ReactMqttClient($connector, $loop);
4040

0 commit comments

Comments
 (0)