Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用此代码将 XMPP 状态设置为脱机,但没有任何反应。请帮助我
存在存在;
存在=新存在(存在.Type.unavailable);
connection.sendPacket(存在);
我想将我的状态设置为离线,以便其他用户无法向我发送消息。我真的需要帮助
谢谢!
Tyr This Code fo set your status as Offline :
Presence pres = new Presence(Presence.Type.unavailable);
connection.sendPacket(pres);