Why do you need a message queue for a chat with web sockets?

前端 未结 3 1515
醉梦人生
醉梦人生 2021-02-02 01:58

I have seen a lot of examples on the internet of chats using web sockets and RabbitMQ (https://github.com/videlalvaro/rabbitmq-chat), however I do not understand why it is need

3条回答
  •  伪装坚强ぢ
    2021-02-02 02:23

    uhmm I didn't understand exactly for are you looking for...

    but In RabbiMQ you always publish a messages to an exchange and consume the message using a queue.

    to "broadcast that message" you need to consume it.

    hope it helps

提交回复
热议问题