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

Add sync disconnect #47

Closed bckp closed 3 years ago

bckp commented 3 years ago

Sync disconnect without Promises. The main reason for this is, that client itself is sync (async is in async/client.php) and if connection is lost during app run, it will end fatal error with exception, that can`t be catch. This will put the disconnect back to the sync state, so no more promise and no mo trouble if connection is dropped.

paveljanda commented 3 years ago

Thanks!