我想将rabbitMQ与javascript一起使用。我找到了一些使用 node.js 的示例。然而,没有一个在没有 Node.js 的情况下使用 javascript。
有人可以指点一下吗?我的网站服务器基于 Flask,前端是 html/javascript
最佳答案
您可以利用 STOMP 互操作性功能来实现您想要的目标。
关于 Stomp 的介绍来自 official site :
STOMP is a simple text-orientated messaging protocol. It defines an interoperable wire format so that any of the available STOMP clients can communicate with any STOMP message broker to provide easy and widespread messaging interoperability among languages and platforms (the STOMP web site has a list of STOMP client and server implementations.
你can use STOMP over websockets ,一项由 most 支持的技术现代浏览器。
最后,要将 RabbitMQ 与 STOMP 集成,您可以使用 RabbitMQ STOMP adapter .
关于javascript - RabbitMQ 与 JavaScript,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33192591/