Skip to content

How to publish message with out the loop? #6

@badmansan

Description

@badmansan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions