Hello! I am using bunny to work with RabbitMQ, the code is:
$client = (new Bunny\Client())->connect()->channel();
// ...
$channel->run(function(Message $message, Channel $channel, Client $client) {
// --> here i need to send a message to MQTT broker;
}, 'hello', '', FALSE, TRUE);
It is infinite loop, so i need to send message and return to loop, is it possible?
Hello! I am using bunny to work with RabbitMQ, the code is:
It is infinite loop, so i need to send message and return to loop, is it possible?