Skip to content

Client.stream is undefined #28

@7Surfer

Description

@7Surfer

Hey,
i tried to check if the connection is established. So in the synchronous MQTT there is a way with

const mqtt = require('async-mqtt);
client = mqtt.connect(adress);
client.stream.on('error',/*error handler*/);

To check the stream. But when i try the same in the async i only get a error tath the stream is undefiened.

Metadata

Metadata

Assignees

No one assigned

    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