简体   繁体   English

RabbitMQ在网站上向用户发送消息

[英]RabbitMQ send messages to users on website

I am trying to use RabbitMQ to send messages to users on a website. 我正在尝试使用RabbitMQ向网站上的用户发送消息。 While I know how to communicate between different scripts I can't find anything about how I can get a new user to recieve messages. 虽然我知道如何在不同的脚本之间进行通信,但是我找不到有关如何使新用户接收消息的任何信息。

Let's take chapter 1 of the tutorial as example: https://www.rabbitmq.com/tutorials/tutorial-one-python.html 让我们以本教程的第1章为例: https : //www.rabbitmq.com/tutorials/tutorial-one-python.html

How would I be able to send "Hello World" to a user on my website and be displayed in the console? 如何将“ Hello World”发送给我的网站上的用户并在控制台中显示? Would it even be possible using python? 甚至可以使用python吗?

尝试使用RabbitMQ Web-STOMP插件: https : //www.rabbitmq.com/web-stomp.html

You wouldn't use RabbitMQ for that. 您不会为此使用RabbitMQ。 It's for communication between different services in your back end, not for sending messages between arbitrary users on your front end. 它用于后端不同服务之间的通信,而不是用于前端任意用户之间发送消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM