且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在网页中显示动态数据的***方法

更新时间:2023-12-06 16:41:16

听起来像 WebSocket

有很多实现方法,但是在该主题上有一篇不错的博客文章此处

There are many ways to implement it, but a rather nice blog post on the topic is presented here.

另一种方法是使用 MQTT 直接从浏览器使用JavaScript并订阅包含您的更新的主题。在这种情况下,您必须将数据转发到该主题。为此,您可以将复合队列 forwardOnly = false

Another way is to use MQTT directly from the browser using javascript and subscribe to a topic with your updates. You have to forward your data to that topic, in this case. For that, you can use composite queues with forwardOnly=false.