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 プレゼンスをオフラインに設定しましたが、何も起こりません..助けてください
存在感;
プレゼンス = 新しいプレゼンス (Presence.Type.unavailable);
connection.sendPacket(プレゼンス);
プレゼンスをオフラインに設定して、他のユーザーがメッセージを送信できないようにしたいと考えています。私は本当に助けが必要です
ありがとうございました!
このコードを使用して、ステータスをオフラインに設定します。
Presence pres = new Presence(Presence.Type.unavailable);
connection.sendPacket(pres);