Comparison

spec/scansion/presence_preapproval.scs @ 11120:b2331f3dfeea

Merge 0.11->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 30 Sep 2020 09:50:33 +0100
parent 10515:35bf3b80480f
comparison
equal deleted inserted replaced
11119:68df52bf08d5 11120:b2331f3dfeea
1 # server supports contact subscription pre-approval (RFC 6121 3.4)
2
3 [Client] Alice
4 jid: preappove-a@localhost
5 password: password
6
7 [Client] Bob
8 jid: preapprove-b@localhost
9 password: password
10
11 ---------
12
13 Alice connects
14
15 Alice sends:
16 <presence/>
17
18 Alice receives:
19 <presence/>
20
21 Alice sends:
22 <presence to="${Bob's JID}" type="subscribed"/>
23
24 Bob connects
25
26 Bob sends:
27 <iq type="get" id="roster1">
28 <query xmlns="jabber:iq:roster"/>
29 </iq>
30
31 Bob receives:
32 <iq type="result" id="roster1">
33 <query xmlns="jabber:iq:roster" ver="{scansion:any}">
34 </query>
35 </iq>
36
37 Bob sends:
38 <presence/>
39
40 Bob receives:
41 <presence from="${Bob's full JID}"/>
42
43 Bob sends:
44 <presence to="${Alice's JID}" type="subscribe" />
45
46 Bob receives:
47 <iq type='set' id='{scansion:any}'>
48 <query ver='1' xmlns='jabber:iq:roster'>
49 <item jid="${Alice's JID}" subscription='none' ask='subscribe' />
50 </query>
51 </iq>
52
53
54
55 Bob receives:
56 <presence from="${Alice's JID}" type="subscribed" />
57
58 Bob disconnects
59
60 Alice sends:
61 <iq type="get" id="roster1">
62 <query xmlns="jabber:iq:roster"/>
63 </iq>
64
65 Alice receives:
66 <iq type="result" id="roster1">
67 <query xmlns="jabber:iq:roster" ver="{scansion:any}">
68 <item jid="${Bob's JID}" subscription="from" />
69 </query>
70 </iq>
71
72 Alice disconnects
73
74 Bob disconnects