Ver código fonte

add isConnected

visuddhinanda 1 dia atrás
pai
commit
338cbe71fc
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      api-v13/app/Services/RabbitMQService.php

+ 5 - 0
api-v13/app/Services/RabbitMQService.php

@@ -41,6 +41,11 @@ class RabbitMQService
         $this->channel->basic_qos(null, 1, null);
         $this->channel->basic_qos(null, 1, null);
     }
     }
 
 
+    public function isConnected()
+    {
+        return $this->connection->isConnected();
+    }
+
     public function getChannel(): AMQPChannel
     public function getChannel(): AMQPChannel
     {
     {
         return $this->channel;
         return $this->channel;