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

Firefox was unable to establish a connection to the server ws: //{orgId}.messaging.internetofthings.ibmcloud.com: 8883 /. #148

Open
Nykollas opened this issue Apr 20, 2020 · 0 comments

Comments

@Nykollas
Copy link

Can't connect to websocket with React App.

    const auth = {
      key:"API Key",
      token:"Auth token"
    }
    const identity = {
     orgId:"orgId",
     typeId:"deviceTypeId",
     deviceId:"deviceId"
    }


   let deviceConfig = new DeviceConfig(identity, auth, {});
   let deviceClient = new DeviceClient(deviceConfig);
   deviceClient.connect();
   // Do stuff
   deviceClient.disconnect();
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

1 participant