Software /
code /
prosody
Comparison
spec/scansion/keep_full_sub_req.scs @ 10411:db2a06b9ff98
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 16 Nov 2019 16:52:31 +0100 |
parent | 9670:73e1bdc001ce |
child | 10515:35bf3b80480f |
comparison
equal
deleted
inserted
replaced
10410:659b577f280c | 10411:db2a06b9ff98 |
---|---|
1 # server MUST keep a record of the complete presence stanza comprising the subscription request (#689) | |
2 | |
3 [Client] Alice | |
4 jid: pars-a@localhost | |
5 password: password | |
6 | |
7 [Client] Bob | |
8 jid: pars-b@localhost | |
9 password: password | |
10 | |
11 [Client] Bob's phone | |
12 jid: pars-b@localhost/phone | |
13 password: password | |
14 | |
15 --------- | |
16 | |
17 Alice connects | |
18 | |
19 Alice sends: | |
20 <presence to="${Bob's JID}" type="subscribe"> | |
21 <preauth xmlns="urn:xmpp:pars:0" token="1tMFqYDdKhfe2pwp" /> | |
22 </presence> | |
23 | |
24 Alice disconnects | |
25 | |
26 Bob connects | |
27 | |
28 Bob sends: | |
29 <presence/> | |
30 | |
31 Bob receives: | |
32 <presence from="${Bob's full JID}"/> | |
33 | |
34 Bob receives: | |
35 <presence from="${Alice's JID}" type="subscribe"> | |
36 <preauth xmlns="urn:xmpp:pars:0" token="1tMFqYDdKhfe2pwp" /> | |
37 </presence> | |
38 | |
39 Bob disconnects | |
40 | |
41 # Works if they reconnect too | |
42 | |
43 Bob's phone connects | |
44 | |
45 Bob's phone sends: | |
46 <presence/> | |
47 | |
48 Bob's phone receives: | |
49 <presence from="${Bob's phone's full JID}"/> | |
50 | |
51 | |
52 Bob's phone receives: | |
53 <presence from="${Alice's JID}" type="subscribe"> | |
54 <preauth xmlns="urn:xmpp:pars:0" token="1tMFqYDdKhfe2pwp" /> | |
55 </presence> | |
56 | |
57 Bob's phone disconnects | |
58 |