-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update outdated browserified version #16
Comments
I can install |
@hunsalz I created an account at cloudmqtt.com and was able to connect, subscribe and publish. The following code can be used to publish to the topic
|
Thx @sandro-k for your quick response - I retried with you're code snippet and surprise everything worked like a charm. I'm not sure what I missed out. I was sure that I tried Nevertheless it might be a good idea to upgrade polymer dependency from 1.2.4 to latest 1.6.2. My current version is working fine with this version. ... and as mentioned earlier the dependency towards the browserfied Once again thank you for your advising help. |
I will update to polymer 1.6 and MQTT.js 1.X in the next weeks. I don't see that many breaking changes . The Update to MQTT.js 2.0 which is about to be released might need some work. if you use mqtt-elements in your project feel free to give as much feedback as possible. |
Current browserified version is outdated and leads to a continuous flapping with
wss://
connections.I tried to use
<mqtt-elements>
with cloudmqtt.com and couldn't establish a stable connection. Alternative I tried mqtt-client and could perfectly connect my setup. Unfortunately the code base seems not maintained anymore and mqttws31.js appears to me a minus to mqttjs. In addition I didn't find any other MQTT Polymer element that's up to date or ready to use.That's why I retried
<mqtt-elements>
with various approaches again. With the mqtt CLI I noticed that I need--insecure
as argument to subscribe to my topic. ButrejectUnauthorized = false
seems not to solve my problem programmatically, so that I finally started to implement the basics on my own. After browserify the current mqttjs trunk version and writing the basic JS myself everything worked perfectly in a few minutes.I tried to use my browserified version with
<mqtt-elements>
, but the current version contains breaking changes, so that I was unable to use it out of the box.Any plans to upgrade the
<mqtt-elements>
to the current MQTT.js version?The text was updated successfully, but these errors were encountered: