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即可
最新推荐文章于 2023-11-30 16:48:43 发布
本文详细解释了在XMPP协议中添加好友时,setroster与presence的作用及使用方式,强调了两者之间的区别与联系,并提供了实施注意事项。
添加好友时, set roster是可选的。只发送 type=subscribe的presence即可。 set roster 也只是为了添加昵称和分组用的
有同事问起,结果忘记了,就又翻阅了一下文档,如下描述
2396

被折叠的 条评论
为什么被折叠?



