emqx / emqx/MQTT-Client-Examples
Connect failed! - in react native - AMQJS0007E
Open
- Dominant language
- Kotlin
- Stars
- 1k
- Forks
- 718
- PR merge metrics
- No merged PRs in 30d
Description
trying to use MQTT code in react native from the example provided
const options = {
host: 'broker.emqx.io',
port: 8083,
path: '/testTopic',
id: 'id_' + parseInt(Math.random()*100000)
};
Its returning me the error
Connect failed!
{"errorCode": 7, "errorMessage": "AMQJS0007E Socket error:undefined.", "invocationContext": undefined}
what could be the issue ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.