arcoirislabs / cordova-plugin-mqtt

MqTT Cordova Plugin for Apache Cordova (> v3.0)
MIT License
86 stars 49 forks source link

Why doesnt it support mqtt:// #22

Closed CheyenneForbes closed 8 years ago

ameykshirsagar commented 8 years ago

@CheyenneForbes : Because this project is just the wrapper to the native library. So unless the native library supports connection by mqtt:// or mqtts:// the JS part won't allow the connection to be established.

signalpoint commented 8 years ago

Because this project is just the wrapper to the native library.

@ameykshirsagar Would you please provide a URL to the library you are referring to? I'm curious to monitor progress for mqtt:// and mqtts:// support.

ameykshirsagar commented 8 years ago

@CheyenneForbes @signalpoint The thing is mqtt:// & mqtts:// are nothing but tcp:// & tls:// protocols underneath. For representation purposes we use the URL starting with mqtt:// & mqtts:// when we are doing a MQTT connection instead of a standard TCP Socket connection (even in fact MQTT is a socket connection). But under the hood mqtt:// & mqtts:// are replaced by tcp:// & tls:// as mqtt:// & mqtts:// are not standard protocols recognised on transport layer as per the standards.

Here is the proof of it where the nodejs based MQTT client uses tcp for mqtt://

@signalpoint : This is the library thats being used in this plugin