openfire服务器 android客户端Liu 和pc端zhuaizc
用户离线通知
<presence id="o32WV-45" type="unavailable" from="shuaizc@liu/Spark 2.6.3" to="liuh@liu"/>
用户上线通知
<presence id="wp7so-6" from="shuaizc@liu/Spark 2.6.3" to="liuh@liu"><status>在线</status><priority>1</priority></presence>
接受到消息
<message id="wp7so-27" to="liuh@liu" from="shuaizc@liu/Spark 2.6.3" type="chat"><body>asdasd </body><thread>2u4hJk</thread><x xmlns="jabber:x:event"><offline/><composing/></x></message>
发送消息
<message id="Yjclv-10" to="zhoum@liu" from="liuh@liu/Smack" type="chat"><body>哈哈哈哈哈</body></message>
在线信息
<pre code_snippet_id="68967" snippet_file_name="blog_20131112_6" name="code" class="html"><span style="font-family: Arial, Helvetica, sans-serif;"> <presence id="eOrgc-6" from="admin@openfire/Spark 2.6.3" to="liuh@openfire"><status>在线</status><priority>1</priority></presence></span>
断开连接
</stream:stream>
admin 邀请liu进入123群
<message from="123@conference.ay140528194541z" to="liuh@ay140528194541z"><x xmlns="http://jabber.org/protocol/muc#user"><invite from="admin@ay140528194541z"><reason>请把我加入会议中。</reason></invite></x><x xmlns="jabber:x:conference" jid="123@conference.ay140528194541z"/></message>
添加订阅liuh为好友
<presence id="2089K-64" to="liuh@ay140528194541z" type="subscribe"></presence>
收到admin加好友信息
07-03 11:42:19.726: D/SMACK(20951): 11:42:19 上午 RCV (1113167544): <presence id="2089K-64" to="liuh@ay140528194541z" type="subscribe" from="admin@ay140528194541z"/>
接受admin的申请
07-03 11:42:19.726: D/SMACK(20951): 11:42:19 上午 SENT (1113167544): <presence id="916JW-4" to="admin@ay140528194541z" type="subscribed"></presence>
ping 包
07-03 11:35:10.598: D/SMACK(26117): 11:35:10 上午 RCV (1113164104): <iq type="get" id="4-122" from="ay140528194541z" to="liuh@ay140528194541z/Smack"><ping xmlns="urn:xmpp:ping"/></iq>
07-03 11:35:10.608: D/SMACK(26117): 11:35:10 上午 SENT (1113164104): <iq id="4-122" to="ay140528194541z" from="liuh@ay140528194541z/Smack" type="error"><error code="501" type="CANCEL"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>