Skip to content

Connect failed! - in react native - AMQJS0007E #91

@jeebendu

Description

@jeebendu

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 ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions