标签: openfire smack
XMPPTCPConnection connection = connectionFactory.getConnection(user); Presence presence = new Presence(Presence.Type.unavailable); presence.setMode(Presence.Mode.away); connection.sendStanza(presence);
在Openfire 4.2.3和4.2.3中运行 结果是用户仍然在线。为什么?