Skip to content
This repository was archived by the owner on Apr 9, 2020. It is now read-only.
This repository was archived by the owner on Apr 9, 2020. It is now read-only.

Argument 0 of removeClient can not be null #26

@barbaragomes

Description

@barbaragomes

No matter what I pass to the removeClient function, react always complain about the clientRef not being present.

How can I fix it?

Here is a example of my code:

var MQTTClient = require('react-native-mqtt');
const client = MQTTClient.createClient({...})
MQTTClient.removeClient(client.clientRef)

I have also hardcoded a number and it still throws the same exception. Any help would be nice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions