Code Monkey home page Code Monkey logo

Comments (3)

naychrist avatar naychrist commented on August 30, 2024

I put a trace in and the string I am getting back from the broker is {"action":9,"error":{"message":"No authentication information provided. (See https://help.ably.io/error/40101 for help.)","code":40101,"statusCode":401,"nonfatal":false,"href":"https://help.ably.io/error/40101"},"timestamp":1688445446903} despite me sending the correct username and pass. took a look at the link to see what I am missing but credentials are correct: https://faqs.ably.com/40101-invalid-credentials

I think the issue may be that ably only supports mqtts:// not wss://, which is the reverse of what this lib supports. Is it trivial to add support for mqtts? (i have reach out to ably support also)

from mqtt_client.

shamblett avatar shamblett commented on August 30, 2024

OK, mqtts is just MQTT with secure working, see here as far as I can see, the client does support this using secure working but on the server side only, in the browser you can't use secure sockets only web sockets.

The broker should have responded to you using a correctly formed connect ack message with the relevant return code which in your case should be notAuthorized. It shouldn't return an arbitrary json string to an MQTT client.

from mqtt_client.

naychrist avatar naychrist commented on August 30, 2024

Ok, looks like for flutter web I would need to wrap mqtt.js using dart's js interop. Still planning to use your MqttServerClient for Flutter Mac and Windows Desktop. Have passed on your note re response to ably team. Thanks!

EDIT - actually makes more sense to wrap ably SDK when talking to that but will use browser client for another use case talking to local mosquitto server

from mqtt_client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.