blob: 68d728b9fff18f8bbfb063c763594269c9047087 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# When removing roster contact, Prosody should send directed "unavailable" presence but sends global unavailable presence
[Client] Romeo
jid: romeo@localhost
password: password
[Client] Juliet
jid: juliet@localhost
password: password
-----
Romeo connects
Romeo sends
<presence/>
Romeo receives
<presence from="${Romeo's full JID}"/>
Juliet connects
Juliet sends
<presence/>
Juliet receives
<presence from="${Juliet's full JID}"/>
Romeo sends
<presence to="juliet@localhost" type="subscribe"/>
Romeo receives
<presence from="juliet@localhost" to="romeo@localhost"/>
Juliet receives
<presence from="romeo@localhost" to="juliet@localhost" type="subscribe"/>
Juliet sends
<presence to="romeo@localhost" type="subscribed"/>
Romeo receives
<presence from="${Juliet's full JID}" to="romeo@localhost"/>
Juliet sends
<presence to="romeo@localhost" type="subscribe"/>
Juliet receives
<presence from="romeo@localhost" to="juliet@localhost"/>
Romeo receives
<presence from="juliet@localhost" to="romeo@localhost" type="subscribe"/>
Romeo sends
<presence to="juliet@localhost" type="subscribed"/>
Juliet receives
<presence from="${Romeo's full JID}" to="juliet@localhost"/>
Romeo receives
<presence from="${Juliet's full JID}" to="romeo@localhost"/>
Juliet sends
<iq type="set" id="iq1">
<query xmlns="jabber:iq:roster">
<item jid="romeo@localhost" subscription="remove"/>
</query>
</iq>
Juliet receives
<iq type="result" id="iq1"/>
Romeo receives
<presence from="${Juliet's full JID}" to="romeo@localhost" type="unavailable"/>
Romeo disconnects
|