can client of the xmpp server disconnect other client from the server?

那年仲夏 提交于 2019-12-08 02:32:17

问题


It this possible? How? (Maybe silly question, but I couldn't find answer :( )

EDIT:I am using Openfire server embedded into different system, so I need if admin of the system kicks out the user from the system server, user's connection to Openfire server should be closed too.


回答1:


Under some cases, yes :

  • The same full jid "user@host/resource" connects from two different sources. The server usually disconnects the old one. Though some servers (OpenFire comes to mind) may make it configurable.

  • If a client has admin right, using adhoc commands, it can destroy another connection. It depends on the server implementation. (ejabberd makes that possible)

In all other cases, clients are isolated and this can't happen. (Or it's a high priority bug in the server).




回答2:


In the Openfire admin console, running as an HTTP server on port 9090, the administrator can disconnect any connected client.



来源:https://stackoverflow.com/questions/1714242/can-client-of-the-xmpp-server-disconnect-other-client-from-the-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!