Comments (2)
Advantages:-
- Easy to implement.
- Websocket plugin being supported widely on all the platforms ensure the uniform support on all the platforms.
- Good for the apps who want to port the mobile web code to a Cordova app.
Disadvantages:-
- No scope of implementing background operation. This plugin has no capability of operating in background yet but as the implementation is native, we do have plenty of room to implement sticky background service to keep it running in background.
- Creates an overhead on the Javascript thread due to MQTT.js. Possible reduction in performance.
Cordova MQTT plugin.
Advantages:-
- Pure native client with JS bindings.
- Least overhead on the Javascript code.
- Event based topic bus to receive the payload.
Disadvantages:-
- Absence of background implementation but possibility to implement one, which has been planned for next release.
Although the MQTT.js and native library are same on the options and feature level but at the language level, Java library beats the Javascript counterpart. Also it is wise to let the native side do the heavy lifting rather than achieving it in Javascript.
from cordova-plugin-mqtt.
Thanks!
from cordova-plugin-mqtt.
Related Issues (20)
- clean session flag support? HOT 1
- Subscribe to multiple topics. HOT 1
- Any news about SSL support mqtts? HOT 4
- Stop Listen (Un-Listen) to a topic without disconnect
- I need help, I don't know how to make it work HOT 5
- How to subscribe multiple topics ? HOT 4
- Raspberry Pi Broker
- MQTT serverConnection lost HOT 8
- I have a probelm MQTT Plugin is not working HOT 1
- Major updates Feb 2019 HOT 2
- Background Instance
- It star give error on visual studio
- Intent Service
- Publish function sometimes retain false, sometimes true HOT 2
- Can't open mqtt reconnect function
- 无法上传数据流报文 Unable to upload data stream message
- Ionic 4- Use Cordova-plugin-mqtt HOT 1
- SSL/TLS
- paho not defined HOT 2
- Client ID register as "null" by broker HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-mqtt.