Name
id — Optional
Synopsis
<message id='JCOM_12'
>
When a message is sent, and a reply is expected, it is often useful to give the outbound message an identifier. When the recipient responds, the identifier is included in the response. In this way, the originator of the message can work out which reply corresponds to which original message.
At the Jabber server, this works because a reply is usually built from
a copy of the original message, with the
from
and
to
attributes switched around. So the
id
attribute remains untouched and in
place.
Note
Each id
value within a session, represented by one
streamed XML document, must be unique within that session, that is,
within that one document.
Get Programming Jabber now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.