difference between packetTo and stanzaTo?

Raylin lin
Added about 5 years ago

hi all,

   what is the difference between packetTo and stanzaTo?  what situation should I use packetTo(or stanzaTo)? thank you.

Replies (1)


Added by Artur Hefczyc TigaseTeam about 5 years ago

stanzaTo keeps the exact data from the XMPP packet (stanza). Whatever is set in message, presence or IQ packet. packetTo is kind of an internal address used for Tigase processing. packetTo is usually set to the address of the Tigase component which is supposed to handle and process the stanza.