XEP-0115
Motivation
異なった行動を取ることは、XMPPアプリケーションにとってしばしば望ましいことがある
うれしいpoint
他の実体の能力によってアイコンを使い分ける
"片方のuserの使うclientがファイル転送をサポートしない場合、send a file"buttonを見せない
subscriberの興味に合わせpubsubの通知をフィルタリングする
昔はXEP-0030(Service Discovery)やSoftware Version(XEP-0092)をそれぞれの実体へ、presenceを受け取った実体から送った
How It Works
Generation Method(verに対して)
文字列作成
{{category}}/{{type}}/{{lang}}/{{name}}<{{features}}<
e.g. client/pc//Exodus 0.9.1<http://jabber.org/protocol/caps<http://jabber.org/protocol/disco#info<http://jabber.org/protocol/disco#items<http://jabber.org/protocol/muc<
sha-1などでhash化byte列を取得
感想
機能をsha1 -> base64化して送信
知らない文字列ならば詳しく問い合わせる
code:xml
<presence>
</presence>
code:xml
<identity category='client' type='smartphone'/>
</query></iq>