contributte / rabbitmq

🐰 RabbitMQ (AMQP, STOMP, MQTT) using BunnyPHP for Nette Framework (@nette).
https://contributte.org/packages/contributte/rabbitmq.html
MIT License
24 stars 25 forks source link

Added lazy connect, Fixed php version #28

Closed slischka closed 4 years ago

slischka commented 4 years ago

The motivation for this PR is eliminate crashes of application. Due to always connection to rabbitmq server, even if there is no need to push or consume message.

There is not BC break.

Only place where can trouble starts is in method /Connection/Connection::getBunnyClient if the lazy connection is enabled. The Connection returns not connected client to rabbit. But I think it is intendet.

paveljanda commented 4 years ago

Okey, cool, thanks!