Implementation Note: Many XMPP clients prompt the user for information about the potential contact (e.g., "handle" and desired roster group) when generating an outbound presence subscription request and therefore send a roster set before sending the outbound presence subscription request. This behavior is OPTIONAL, because a client MAY instead wait until receiving the initial roster push from the server before uploading user-provided information about the contact. A server MUST process a roster set and outbound presence subscription request in either order (i.e., in whatever order generated by the client).
添加好友時, set roster是可選的。只發送 type=subscribe的presence即可
添加好友時, set roster是可選的。只發送 type=subscribe的presence即可。 set roster 也只是爲了添加暱稱和分組用的
有同事問起,結果忘記了,就又翻閱了一下文檔,如下描述
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
九:基於xmpp的聊天
liaowx
2020-07-08 00:31:04
四:Smack文檔的下載和初步瞭解
從本篇開始就要進入代碼篇,寫代碼需要看一下文檔,所以我們先下載一個Smack文檔。 一:Smack文檔的下載 1、下載最新的Smack文檔 官方下載站點: http://www.igniter
liaowx
2020-07-07 23:55:57
六:基於XMPP的smack註冊
liaowx
2020-07-07 23:55:47
Gloox發送消息
study_live
2020-07-07 06:05:14
ActiveMQ 初步入門及相關概念理解
1 JMS 在介紹ActiveMQ之前,首先簡要介紹一下JMS規範。 1.1 JMS的基本構件 1.1.1 連接工廠 連接工廠是客戶用來創建連
zxbcjdx
2020-07-03 06:21:54
XMPP通信中的離線消息
clooker
2020-07-03 00:37:08
【ejabberd】安裝XMPP服務器ejabberd(Ubuntu 12.04)
iOS程序媛
2020-07-02 15:14:23
iOS後臺運行模式(background execution mode)
wiseuc_jianghai
2020-06-30 17:44:50
Android xmpp開發 asmack獲取離線在線添加好友訊息 及 好友上線下線通知
还没想好ne
2020-06-30 04:25:05
(二)XMPP 即時通信 openfire安裝 IOS
没有坟营的女鬼
2020-06-29 10:48:44
ios xmpp開發應用後臺模式接收聊天信息
linfeng1009
2020-06-27 16:45:36
asmack 註冊 登陸 聊天 多人聊天室 文件傳輸
乐不思书
2020-06-27 06:52:00