Registry / networking / binsoul-net-mqtt-client-react

binsoul-net-mqtt-client-react

JSON →
library2.0.1phppackagistunverified

Asynchronous MQTT client built on React

composer require binsoul/net-mqtt-client-react
INSTALL
IMPORT
SIG · BINSOUL-NET-MQTT-C
B
binsoul-net-mqtt-client-react
networkingphpv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ReactMqttClient
use BinSoul\Net\Mqtt\Client\React\ReactMqttClient;

Connect to an MQTT broker asynchronously.

use BinSoul\Net\Mqtt\Client\React\ReactMqttClient; use React\EventLoop\Factory; $loop = Factory::create(); $client = new ReactMqttClient($loop); $client->connect('tcp://localhost:1883'); $loop->run();
Debug
Known issues
gotchaRequires ReactPHP event loop; not compatible with synchronous code.
fix
Ensure your application uses ReactPHP event loop and avoid blocking calls.
affects: >=2.0.0
Upgrade
Version history
2.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
38
OpenAI (training)
1
Resources
binsoul-net-mqtt-client-react — pip install binsoul-net-mqtt-client-react · libregistry