How to send messages from server to client?

前端 未结 6 759
轮回少年
轮回少年 2021-02-08 13:12

I am going to implement something similar to Facebook notification and this website (StackOverflow\'s notification which is notifying us if anyone write a comment/answer etc for

6条回答
  •  有刺的猬
    2021-02-08 13:36

    mqtt can be used for server pushing and message broadcasting.

    There are more detail information in http://mqtt.org/.

    ======================================

    Updated: Jul 11, 2013

    Mqtt is a publish/subscribe, extremely simple and lightweight messaging protocol. If server is a publisher and client browser subscribe the topic which server publish to, then server can push message to client directly.

    Some useful resource:

    Mosquitto is an open sourced mqtt server. Easy to install and configure.

    mqtt-client is a proven powerful java mqtt client.

提交回复
热议问题