sp-react-native-mqtt icon indicating copy to clipboard operation
sp-react-native-mqtt copied to clipboard

Fix clear eventHandler when removeClient

Open hat-iparamed opened this issue 3 years ago • 0 comments

Context

My app has a use case to clear all MQTT client on logout and re-create the client when login again.

But when removeClient the check if(this.clients.length > 0) always return false, therefore it won't remove the eventHandler resulting when I create new client it could not set up MQTT events again.

hat-iparamed avatar Nov 01 '22 09:11 hat-iparamed