Skip to content

Commit

Permalink
Use ACKNOWLEDGED_DELIVERY QoS level
Browse files Browse the repository at this point in the history
  • Loading branch information
valga committed Aug 7, 2017
1 parent 8fd4758 commit d370bdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Lite.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class Lite implements EventEmitterInterface
{
use EventEmitterTrait;

const QOS_LEVEL = 1;

const MESSAGE_TOPIC = '/fbns_msg';
const MESSAGE_TOPIC_ID = '76';

Expand Down Expand Up @@ -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));
}
}

0 comments on commit d370bdf

Please sign in to comment.