Name
from — Set by server
Synopsis
<message from='dj@yak/Desktop'
>
The from
attribute of the
<message/>
element shows the message originator’s JID. In many cases this is the JID
of a user, but with the message type groupchat
, for example, it can be
the JID of the conference room in the place where the message was originally sent.
The from
attribute
should not be set by the client. It is the Jabber server, to which the
client from where the message originated is connected, that sets the
attribute value. This is to prevent spoofing of JIDs. If a
from
attribute is set, it will
be overriden by the server.
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.