我们使用http-bind
我们的聊天应用程序使用 BOSH 和 Openfire (3.8.2) 作为后端,Strope 库 (JS) 作为前端。
每个用户通过连接获得指定的唯一资源。这意味着用户可以同时登录不同的设备/浏览器(多个连接,例如 <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4b3e382e390b2e332a263b272e65282426" rel="noreferrer noopener nofollow">[email protected]</a>/resource1
、 <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e095938592a08598818d908c85ce838f8d" rel="noreferrer noopener nofollow">[email protected]</a>/resource2
等)。理想情况下,我们希望将消息发送到所有连接的资源。
我们设置route.all-resources setting="true"
所有用户资源的连接优先级相同,但行为根本没有改变(仅收到最后连接的用户资源的聊天消息)。
有人可以提出解决方案或想法来解决这个问题吗?
谢谢
最佳答案
您可能需要 route.all-resources
或 route.really-all-resources
route.really-all-resources
= true
将以非负优先级向所有 session 发送消息
route.all-resources
= true
将向所有共享最高非负优先级的 session 发送消息
关于resources - Openfire服务器,多个连接,route.all-resources不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20396169/