如何在Openfire中向所有用户发送消息?

时间:2017-10-04 09:01:58

标签: xmpp openfire smack

我想在openfire中向所有用户发送消息。我知道广播插件。但它只能向在线用户发送消息。但我想向所有openfires用户发送消息。请帮助我是否有任何插件或其他方式向所有用户发送消息。

1 个答案:

答案 0 :(得分:1)

根据官方规格,只需使用Broadcast Plugin正确配置此参数:

plugin.broadcast.all2offline -- true to deliver broadcast messages sent to all@[serviceName].[serverName] to online and offline users. When false or not set only online users get the messages as described below.

所以只需添加此参数

  • 通过管理控制台面板(服务器 - >系统属性 - >“添加新功能 财产“在底部”
  • 或在数据库上的OFPROPERTY表中添加此值。

可能需要重新启动Openfire。