mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-09 22:51:07 +01:00
Add XMPPConnection.sendStanza(Stanza)
and deprecate sendPacket().
This commit is contained in:
parent
183af99ffb
commit
ed4fa3390f
58 changed files with 183 additions and 167 deletions
|
|
@ -52,7 +52,7 @@ import org.jivesoftware.smack.packet.Stanza;
|
|||
* public void methodToTest() {
|
||||
* Packet packet = new Packet(); // create an XMPP packet
|
||||
* PacketCollector collector = connection.createPacketCollector(new StanzaIdFilter());
|
||||
* connection.sendPacket(packet);
|
||||
* connection.sendStanza(packet);
|
||||
* Packet reply = collector.nextResult();
|
||||
* }
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue