shehankonecranes / sp-react-native-mqtt

MQTT Client native module for react-native
68 stars 55 forks source link

how to set durability when subscribe topic? #40

Open liveforownhappiness opened 2 months ago

liveforownhappiness commented 2 months ago

My code :

` onConnect() { const self = this;

self.client?.on('connect', function () {
  self.client?.subscribe(self.topic, 1);
});

} `

I cannot get message after connect which I received when mqtt disconnect.(clientId is same)