From d370bdfe768c21271a76d8b3fff1b3c2c08804ef Mon Sep 17 00:00:00 2001 From: Abyr Valg Date: Mon, 7 Aug 2017 15:33:01 +0300 Subject: [PATCH] Use ACKNOWLEDGED_DELIVERY QoS level --- src/Lite.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Lite.php b/src/Lite.php index 6805489..c311e17 100644 --- a/src/Lite.php +++ b/src/Lite.php @@ -27,6 +27,8 @@ class Lite implements EventEmitterInterface { use EventEmitterTrait; + const QOS_LEVEL = 1; + const MESSAGE_TOPIC = '/fbns_msg'; const MESSAGE_TOPIC_ID = '76'; @@ -294,6 +296,6 @@ public function register($packageName, $appId) 9 ); - return $this->client->publish(new DefaultMessage(self::REG_REQ_TOPIC_ID, $payload)); + return $this->client->publish(new DefaultMessage(self::REG_REQ_TOPIC_ID, $payload, self::QOS_LEVEL)); } }