question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MQTT over TCP as an optional transport

See original GitHub issue

You want to:

  • report a bug
  • request a feature

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:

  • 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')]

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
darrachequesnecommented, Aug 21, 2018

@hearsh I’m afraid no work has been done on our side yet, I don’t know if @truongsinh has had some time to dedicate to it.

1reaction
darrachequesnecommented, Dec 22, 2016

Hi @truongsinh, sorry for the delay! That indeed looks promising, I’ll be happy to merge your pull request for that feature.

I’m afraid you’ll have to dig a bit into engine.io internals though 💪

Read more comments on GitHub >

github_iconTop Results From Across the Web

IoT Platform:Establish MQTT connections - Alibaba Cloud
This topic describes how to establish Message Queuing Telemetry Transport (MQTT) connections by using an MQTT client.
Read more >
MQTT messaging - IBM
MQTT is a publish and subscribe messaging transport protocol that is designed for the efficient exchange of real-time data between sensor and mobile...
Read more >
What is MQTT and How Does it Work? - TechTarget
While the TT in MQTT stands for Telemetry Transport, the MQ is in reference to a product called IBM MQ. Although the spell-out...
Read more >
MQ Telemetry Transport (Part 1) - Circuit Cellar
MQTT packets use the Transmission Control Protocol/Internet Protocol (TCP/IP) for communications. The Internet Protocol suite uses ports to ...
Read more >
MQTT - Zephyr Project Documentation
MQTT (Message Queuing Telemetry Transport) is an application layer protocol which works on top of the TCP/IP stack.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found