Skip to content

Commit d370bdf

Browse files
committed
Use ACKNOWLEDGED_DELIVERY QoS level
1 parent 8fd4758 commit d370bdf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Lite.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class Lite implements EventEmitterInterface
2727
{
2828
use EventEmitterTrait;
2929

30+
const QOS_LEVEL = 1;
31+
3032
const MESSAGE_TOPIC = '/fbns_msg';
3133
const MESSAGE_TOPIC_ID = '76';
3234

@@ -294,6 +296,6 @@ public function register($packageName, $appId)
294296
9
295297
);
296298

297-
return $this->client->publish(new DefaultMessage(self::REG_REQ_TOPIC_ID, $payload));
299+
return $this->client->publish(new DefaultMessage(self::REG_REQ_TOPIC_ID, $payload, self::QOS_LEVEL));
298300
}
299301
}

0 commit comments

Comments
 (0)