Comparison

spec/scansion/lastactivity.scs @ 11120:b2331f3dfeea

Merge 0.11->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 30 Sep 2020 09:50:33 +0100
parent 10732:f5d88ad24b30
comparison
equal deleted inserted replaced
11119:68df52bf08d5 11120:b2331f3dfeea
1 # XEP-0012: Last Activity / mod_lastactivity
2
3 [Client] Romeo
4 jid: romeo@localhost
5 password: password
6
7 -----
8
9 Romeo connects
10
11 Romeo sends:
12 <presence>
13 <status>Hello</status>
14 </presence>
15
16 Romeo receives:
17 <presence from="${Romeo's full JID}">
18 <status>Hello</status>
19 </presence>
20
21 Romeo sends:
22 <presence type="unavailable">
23 <status>Goodbye</status>
24 </presence>
25
26 Romeo receives:
27 <presence from="${Romeo's full JID}" type="unavailable">
28 <status>Goodbye</status>
29 </presence>
30
31 # mod_lastlog saves time + status message from the last unavailable presence
32
33 Romeo sends:
34 <iq id='a' type='get'>
35 <query xmlns='jabber:iq:last'/>
36 </iq>
37
38 Romeo receives:
39 <iq type='result' id='a'>
40 <query xmlns='jabber:iq:last' seconds='0'>Goodbye</query>
41 </iq>
42
43 Romeo disconnects
44
45 # recording ended on 2020-04-20T14:39:47Z