You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When developing mobile apps (aka non-web), MQTT over TCP performs much better than HTTP (polling, websocket, or MQTT over websocket), however, like the adoption of websocket, MQTT over TCP might be stopped by firewall. In an ideal scenario, app developers should not care about the transportation, but focus on the logic. Transportation layer should gracefully chooses the best method, given the conditions. Ref https://www.quora.com/Is-MQTT-better-than-HTTP-for-mobile-app-iOS-Android-etc-client-server-communication
Other information:
If this issue is approved, I can research how to optionally use https://github.com/mqttjs/MQTT.js as one of the transport method, e.g ['polling', 'websocket', require('mqtt-engine')]
The text was updated successfully, but these errors were encountered:
add MQTT transport over TCP is not possible (this version of engine.io depends on HTTP(request, URL))
but look at my idea :
1 - serve MQTT broker (Mosca, etc) with node js or any server
2 - implement MQTT transport in engine.io as an independent module
3 - in MQTT transport req data will be emulated
You want to:
Status quo
"Transport" only supports
['polling', 'websocket']
Expected implementation
"Transport" supports
['polling', 'websocket', 'mqtt']
Rationale
When developing mobile apps (aka non-web), MQTT over TCP performs much better than HTTP (polling, websocket, or MQTT over websocket), however, like the adoption of websocket, MQTT over TCP might be stopped by firewall. In an ideal scenario, app developers should not care about the transportation, but focus on the logic. Transportation layer should gracefully chooses the best method, given the conditions. Ref https://www.quora.com/Is-MQTT-better-than-HTTP-for-mobile-app-iOS-Android-etc-client-server-communication
Other information:
['polling', 'websocket', require('mqtt-engine')]
The text was updated successfully, but these errors were encountered: