I'd suggest you look at these two packages. They make it relatively straight forward to accept websocket connections and to publish/listen for mqtt messages:
https://www.npmjs.com/package/mqtt https://www.npmjs.com/package/socket.io On Thursday, April 6, 2017 at 1:27:38 PM UTC-4, John O Connor wrote: > > I need help writing a script to get data using a websocket and send it to > CloudMqtt broker. Can anyone help with this? I am lost where to start. > > John > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/b7e75bef-c85d-4431-92ab-9c835ca8b8ff%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
