edusperoni / nativescript-mqtt

MQTT 3.1.1 for Nativescript
Apache License 2.0
12 stars 3 forks source link

Roadmap for compatibility with native MQTT protocol (no websockets)? #7

Open rhclayto opened 5 years ago

rhclayto commented 5 years ago

Hi,

Are there any plans to make this work with work with native MQTT packets over TCP/TLS, avoiding the extra websockets wrapper? I'm guessing since NativeScript lacks node's net module, it might be hard? Would the net-browserify module help any? https://github.com/emersion/net-browserify

edusperoni commented 5 years ago

That would require some deep editing of eclipse's mqtt script, as it's design to work with websockets.

In that case, it's actually easier to reimplement the plugin using native libs like:

https://github.com/novastone-media/MQTT-Client-Framework for iOS

and

https://www.eclipse.org/paho/clients/android/ for Android

PRs are welcome :)