Imaginary Jabber Conversation
To help you better understand what transpires during a Jabber-based conversation, this section presents a conversation between two friends, Jim and John, and two “assistant” applications at their respective places of work.
Jim and John work at two different companies. Both of them invest in the stock market, and they use a Jabber-based service to check and monitor prices, to buy and sell shares, and to manage their portfolios. John’s company also has a workflow assistant that monitors incoming email and coordinates work items between colleagues.
Jim is notified that John is available:
<presence from='john@company-b.com/Desk'
to='jim@company-a.com/home'>
<status>Online</status>
<priority>2</priority>
</presence>
Jim sends a quick chat message to John:
<message type='chat' from='jim@company-a.com/home'
to='john@company-b.com'>
<thread>01</thread>
<body>Hey John, have you seen the latest story on Megacorp earnings?</body>
</message>
John responds:
<message type='chat' to='jim@company-a.com/home'
from='john@company-b.com/Desk'>
<thread>01</thread>
<body>No, where is it?</body>
</message>
Jim sends John the URL:
<message type='chat' from='jim@company-a.com/home'
to='john@company-b.com/Desk'>
<thread>01</thread>
<body>Here's the link</body>
<x xmlns='jabber:x:oob'>
<url>http://www.megacorp.co.uk/earnings3q.html</url>
<desc>Third Quarter Earnings for Megacorp</desc>
</x>
</message>
John receives an alert about the price of ACME Holdings (ACMH) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access