Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close event is getting fired continuously #5

Closed
Mudassir-23 opened this issue May 29, 2020 · 1 comment
Closed

Close event is getting fired continuously #5

Mudassir-23 opened this issue May 29, 2020 · 1 comment

Comments

@Mudassir-23
Copy link

Hi @taoqf , when i try connecting to any any stream with any protocol. The connection close callback gets called regularly. Even the below snippet doesn't work. Is it a bug ?.
var mqtt = require('@taoqf/react-native-mqtt')
var client = mqtt.connect('mqtt://test.mosquitto.org')
client.addListener('connect', () => {
console.log('connected');
});
client.on('connect', function () {
client.subscribe('presence', function (err) {
if (!err) {
client.publish('presence', 'Hello mqtt')
}
})
})

@taoqf
Copy link
Owner

taoqf commented May 30, 2020

#4

@taoqf taoqf closed this as completed May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants