Stream Feature: Request presence subscription #26

Open
opened 2024-12-25 12:36:57 +00:00 by Ivan-lis · 0 comments
Member

https://xmpp.org/rfcs/rfc6121.html#rfc.section.3

3.1.1. Client Generation of Outbound Subscription Request

A user's client generates a subscription request by sending a presence stanza of type "subscribe" and specifying a 'to' address of the potential contact's bare JID contact@domainpart.

UC: <presence id='xk3h1v69'
              to='juliet@example.com'
              type='subscribe'/>

3.1.4.
Client Processing of Inbound Subscription Request
https://xmpp.org/rfcs/rfc6121.html#rfc.section.3.1.4

A client approves a subscription request by sending a presence stanza of type "subscribed", which is processed as described under Section 3.1.5 for the contact's server and Section 3.1.6 for the user's server.

CC: <presence id='h4v1c4kj'
              to='romeo@example.net'
              type='subscribed'/>

A client denies a subscription request by sending a presence stanza of type "unsubscribed", which is processed as described under Section 3.2 for both the contact's server and the user's server.

CC: <presence id='tb2m1b59'
              to='romeo@example.net'
              type='unsubscribed'/>
https://xmpp.org/rfcs/rfc6121.html#rfc.section.3 3.1.1. Client Generation of Outbound Subscription Request A user's client generates a subscription request by sending a presence stanza of type "subscribe" and specifying a 'to' address of the potential contact's bare JID <contact@domainpart>. ```xml UC: <presence id='xk3h1v69' to='juliet@example.com' type='subscribe'/> ``` 3.1.4. Client Processing of Inbound Subscription Request https://xmpp.org/rfcs/rfc6121.html#rfc.section.3.1.4 A client approves a subscription request by sending a presence stanza of type "subscribed", which is processed as described under Section 3.1.5 for the contact's server and Section 3.1.6 for the user's server. ```xml CC: <presence id='h4v1c4kj' to='romeo@example.net' type='subscribed'/> ``` A client denies a subscription request by sending a presence stanza of type "unsubscribed", which is processed as described under Section 3.2 for both the contact's server and the user's server. ```xml CC: <presence id='tb2m1b59' to='romeo@example.net' type='unsubscribed'/> ```
Ivan-lis added this to the Main project 2024-12-25 12:38:00 +00:00
Ivan-lis added a new dependency 2024-12-25 20:17:03 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: Larra/larra#26
No description provided.