00:05:17
sonny
has left
00:05:27
sonny
has joined
00:05:48
larma
has left
00:06:15
sonny
has left
00:06:25
sonny
has joined
00:10:47
syrupthinker
has left
00:13:13
al
has left
00:17:53
cdcode
has left
00:31:06
atomicwatch
has left
00:38:48
atomicwatch
has joined
00:42:24
jubalh
has left
00:42:39
emus
has left
00:43:19
xnamed
has left
00:45:53
wurstsalat
has left
01:03:16
Neustradamus
has left
01:03:45
sonny
has left
01:03:55
sonny
has joined
01:13:15
marc0s
has left
01:13:16
marc0s
has joined
01:13:56
doge
has joined
01:22:06
sonny
has left
01:28:51
doge
has left
01:33:27
SouL
has left
01:36:48
doge
has joined
01:40:56
dezant
has left
02:00:38
pulkomandy
has left
02:00:50
pulkomandy
has joined
02:08:51
qwestion
has joined
02:09:31
qwestion
has left
02:11:07
qwestion
has joined
02:11:30
qwestion
has left
02:14:07
qwestion
has joined
02:14:30
qwestion
has left
02:15:33
qwestion
has joined
02:15:57
qwestion
has left
02:18:56
qwestion
has joined
02:19:12
qwestion
has left
02:24:02
qwestion
has joined
02:24:33
qwestion
has left
02:27:29
qwestion
has joined
02:27:51
qwestion
has left
02:29:51
thomaslewis
has joined
02:33:07
thomaslewis
has left
02:35:57
jgart
has left
02:38:44
dezant
has joined
02:56:32
doge
has left
02:58:16
Kev
has left
02:58:23
Kev
has joined
03:12:27
qrpnxz
has left
03:12:28
qrpnxz
has joined
03:12:57
qrpnxz
has left
03:13:07
qrpnxz
has joined
03:16:32
kikuchiyo
has left
03:22:37
Umar
has joined
03:23:00
thomaslewis
has joined
03:23:12
Umar
has left
03:23:30
alacer
has joined
03:24:13
thomaslewis
has left
03:25:05
thomaslewis
has joined
03:25:41
alacer
has left
03:27:13
thomaslewis
has left
03:32:01
qwestion
has joined
03:32:27
qwestion
has left
03:34:02
qwestion
has joined
03:34:24
qwestion
has left
03:35:38
qwestion
has joined
03:35:47
qwestion
has left
03:37:12
qwestion
has joined
03:37:22
qwestion
has left
03:40:33
qwestion
has joined
03:40:43
qwestion
has left
03:40:56
Millesimus
has joined
03:42:05
qwestion
has joined
03:42:12
qwestion
has left
03:50:50
mac
has left
03:50:51
mac
has joined
03:53:53
Yagizа
has joined
04:05:09
serge90
has joined
04:11:00
doge
has joined
04:27:51
doge
has left
05:00:56
doge
has joined
05:07:03
Millesimus
has left
05:16:13
Zash
has left
05:16:59
Zash
has joined
05:20:24
jgart
has joined
05:20:36
emus
has joined
05:22:10
Millesimus
has joined
05:22:37
SouL
has joined
05:37:40
paul
has joined
05:46:52
COM8
has joined
05:46:54
COM8
has left
05:48:34
COM8
has joined
05:48:58
COM8
has left
05:51:31
dezant
has left
06:33:28
mac
has left
06:33:33
mac
has joined
06:51:37
rafasaurus
has left
06:53:37
rafasaurus
has joined
06:53:44
wurstsalat
has joined
06:57:18
msavoritias
has joined
07:14:53
jubalh
has joined
07:17:49
rafasaurus
has left
07:29:48
Alex
has left
07:31:47
rafasaurus
has joined
07:33:42
qwe
has joined
07:40:57
rafasaurus
has left
07:41:08
rafasaurus
has joined
07:50:12
goffi
has joined
07:50:21
Alex
has joined
07:51:55
rafasaurus
has left
07:54:12
sonny
has joined
07:58:08
debacle
has joined
08:03:03
goffi
has left
08:03:09
goffi
has joined
08:07:38
drops
has left
08:07:43
drops
has joined
08:19:17
doge
has left
08:21:04
jubalh
has left
08:21:05
goffi
has left
08:22:30
qrpnxz
has left
08:22:31
qrpnxz
has joined
08:23:02
qrpnxz
has left
08:23:11
qrpnxz
has joined
08:28:30
qrpnxz
has left
08:28:31
qrpnxz
has joined
08:29:01
qrpnxz
has left
08:29:14
qrpnxz
has joined
08:31:33
doge
has joined
08:35:04
msavoritias
has left
08:35:47
goffi
has joined
08:36:46
homebeach
has left
08:36:46
Matrix Traveler (bot)
has left
08:36:47
Matrix Traveler (bot)
has joined
08:36:47
homebeach
has joined
08:39:37
msavoritias
has joined
08:47:08
rafasaurus
has joined
08:59:16
rubi
has left
08:59:18
rubi
has joined
09:00:46
nephele
has joined
09:01:27
nephele
has left
09:01:28
nephele
has joined
09:03:32
rafasaurus
has left
09:08:09
jgart
has left
09:09:54
jgart
has joined
09:10:21
jgart
has left
09:11:31
nephele
has left
09:12:27
doge
has left
09:33:57
Neustradamus
has joined
09:45:28
jubalh
has joined
09:46:40
jubalh
has left
09:49:25
larma
has joined
09:51:39
larma
has left
09:51:49
larma
has joined
09:58:10
xecks
has left
09:58:55
suohua
has joined
10:00:31
suohua
has left
10:00:35
suohua
has joined
10:04:59
Martin
has left
10:05:19
Martin
has joined
10:06:13
rafasaurus
has joined
10:06:51
suohua
has left
10:09:31
xecks
has joined
10:10:22
jubalh
has joined
10:13:05
suohua
has joined
10:18:18
doge
has joined
10:24:39
mac
has left
10:24:39
Millesimus
has left
10:29:20
mh
has left
10:29:34
mh
has joined
10:29:42
larma
has left
10:29:59
larma
has joined
10:35:34
debacle
has left
10:36:29
jubalh
has left
10:36:42
Millesimus
has joined
10:37:17
rafasaurus
has left
10:37:32
msavoritias
has left
10:40:52
msavoritias
has joined
10:42:47
Millesimus
has left
10:43:15
kikuchiyo
has joined
10:46:02
mac
has joined
10:47:20
suohua
has left
10:49:46
suohua
has joined
10:51:33
qrpnxz
has left
10:51:35
qrpnxz
has joined
10:52:04
qrpnxz
has left
10:52:10
qrpnxz
has joined
10:55:29
doge
has left
10:59:39
Vaulor
has left
11:05:24
qwe
has left
11:05:31
qwe
has joined
11:05:31
qwe
has left
11:05:58
Vaulor
has joined
11:09:55
Wojtek
has joined
11:17:52
Squeaky Latex Folf
has left
11:20:29
Squeaky Latex Folf
has joined
11:21:56
doge
has joined
11:25:57
kikuchiyo
has left
11:28:29
kikuchiyo
has joined
11:36:29
jubalh
has joined
11:36:50
jubalh
has left
11:49:51
xnamed
has joined
11:50:07
COM8
has joined
11:50:14
COM8
has left
11:50:26
ralphm
has left
11:52:54
rafasaurus
has joined
11:57:41
selurvedu
has joined
11:58:52
selurvedu
has left
12:08:41
spectrum
has left
12:09:06
nephele
has joined
12:11:51
nephele
has left
12:11:52
rafasaurus
has left
12:12:38
nephele
has joined
12:13:04
nephele
has left
12:14:35
Millesimus
has joined
12:24:32
rafasaurus
has joined
12:24:43
al
has joined
12:29:51
rafasaurus
has left
12:29:58
doge
has left
12:31:00
Millesimus
has left
12:36:26
Millesimus
has joined
12:38:10
xnamed
has left
12:39:32
mac
has left
12:41:51
dezant
has joined
13:02:36
doge
has joined
13:04:34
doge
has left
13:06:11
mac
has joined
13:07:54
doge
has joined
13:10:47
spectrum
has joined
13:13:23
nephele
has joined
13:13:49
nephele
has left
13:16:48
Millesimus
has left
13:17:32
nephele
has joined
13:19:53
Millesimus
has joined
13:20:42
Apollo
has left
13:20:45
Apollo
has joined
13:28:11
nephele
has left
13:28:45
mac
has left
13:28:48
mac
has joined
13:28:48
homebeach
has left
13:28:48
Matrix Traveler (bot)
has left
13:28:49
Matrix Traveler (bot)
has joined
13:28:49
homebeach
has joined
13:31:31
debacle
has joined
13:35:03
nephele
has joined
13:35:44
nephele
has left
13:38:12
mac
has left
13:38:49
mac
has joined
13:41:17
Wojtek
has left
13:41:35
Wojtek
has joined
13:42:59
rafasaurus
has joined
14:03:47
xnamed
has joined
14:05:06
Alex
has left
14:05:09
Alex
has joined
14:25:55
cdcode
has joined
14:27:57
al
has left
14:33:20
homebeach
has left
14:33:20
Matrix Traveler (bot)
has left
14:33:22
Matrix Traveler (bot)
has joined
14:33:22
homebeach
has joined
14:36:45
homebeach
has left
14:36:45
Matrix Traveler (bot)
has left
14:36:46
Matrix Traveler (bot)
has joined
14:36:46
homebeach
has joined
14:39:36
Wojtek
has left
14:40:16
Wojtek
has joined
14:42:04
me9
has joined
14:42:44
pep.
Can somebody crash course getting disco info from accounts in roster? Caps are sent in the directed presence and it's up to the client to iq/get the resource if it wants to know? (also valid for my own other resources?)
14:43:31
Kev
Correct. Get caps in presence, check against caps cache, if missing disco client, check and shove result in cache.
14:43:54
pep.
ta
14:46:48
pep.
What about people not in the roster? I can disco their barejid but I'm not given a fulljid unless they specifically put it in @from?
14:47:32
Zash
@from on a directed presence? that'll always have their full jid there
14:47:56
jonas’
@from on any type="available" presence you receive, actually
14:48:02
pep.
Do I get a directed presence from somebody not in my roster?
14:48:12
jonas’
only if they explicitly send it to you
14:48:25
pep.
Do clients do that?
14:48:32
jonas’
probably not
14:48:44
pep.
Ok
14:48:45
jonas’
fulljids are also found in the @from of IQs and messages though
14:49:24
pep.
So if I don't get a directed presence I'm likely not getting their device capabilities
14:49:30
jonas’
correct
14:49:38
jonas’
s/likely/at all/
14:49:41
pep.
Ok
14:49:53
jonas’
you'll also never notice when a device goes offline or when their capabilities change
14:50:37
Zash
if you got directed presence? then the server should send you unavailable when they go offline
14:50:51
jonas’
Zash, "if I don't get a directed presence"
14:51:29
Zash
ah
14:51:34
Zash
well then you are in the dark
14:52:48
Millesimus
has left
14:55:30
mac
has left
14:57:15
larma
has left
14:59:24
Millesimus
has joined
15:07:18
doge
has left
15:08:10
ralphm
has joined
15:08:33
mac
has joined
15:09:32
suohua
has left
15:11:37
suohua
has joined
15:18:08
Millesimus
has left
15:27:05
goffi
pep.: you can't disco bare jid if you're not in the roster (see my recent email on standard@ about that).
15:27:36
rubi
> s/likely/at all/
> I'm at all not getting
:P
15:28:31
mh
has left
15:28:46
mh
has joined
15:30:39
qrpnxz
has left
15:30:39
homebeach
has left
15:30:39
Matrix Traveler (bot)
has left
15:30:40
qrpnxz
has joined
15:30:40
Matrix Traveler (bot)
has joined
15:30:41
homebeach
has joined
15:32:33
doge
has joined
15:35:08
rafasaurus
has left
15:35:52
doge
How do you usually go about parsing the xmpp stream? You can't just use regular DOM with it can you. Are you supposed to use SAX? But I never understood how people use SAX for anything but the simplest of documents, and from reading XEPs xmpp's structure seems to be far from simple. Any patterns/suggestions?
15:36:09
jonas’
SAX, and it's not that tricky actually
15:36:09
homebeach
has left
15:36:09
Matrix Traveler (bot)
has left
15:36:11
Matrix Traveler (bot)
has joined
15:36:11
homebeach
has joined
15:36:45
jonas’
so in aioxmpp, I structure the XML events directly into python objects representing the stanzas, according to the schema declared by the library and the application.
15:36:45
homebeach
has left
15:36:45
Matrix Traveler (bot)
has left
15:36:47
Matrix Traveler (bot)
has joined
15:36:47
moparisthebest
you *can* use a regular DOM parser, with some hax
15:36:47
homebeach
has joined
15:36:59
jonas’
but there's also a mode where stanzas are written into a DOM
15:37:38
jonas’
if you have a DOM thing which you can feed with SAX events (lxml has that, for instance; but it can also very easily be built from scratch if you have a DOM manipulation library), then you can use the SAX events to create an individual DOM for each stanza
15:37:45
jonas’
if you're into the pain of using DOM
15:37:45
moparisthebest
regardless of parser the biggest thing to be aware of is needing to disable 90% of the things XML can do to just get to the subset XMPP uses
15:37:53
jonas’
oh yes, ^
15:38:03
jonas’
otherwise, happy billion laughs
15:38:52
moparisthebest
depends what you are doing too, I guess a client can probably get by not worrying about it and trusting their server to sanitize for them but meh
15:41:13
Millesimus
has joined
15:42:00
rafasaurus
has joined
15:44:03
Kev
I typically read with a stream parser, and then construct a pseudo-dom from it.
15:44:26
Zash
Pretty much how Prosody works too
15:47:58
rafasaurus
has left
15:48:23
rafasaurus
has joined
15:53:48
doge
Either way seems to take lots of code
15:54:01
doge
Especially "directly from sax" approach, looking at aioxmpp source
15:54:39
qrpnxz
has left
15:54:40
qrpnxz
has joined
15:54:43
jonas’
the direct from sax magic is in aioxmpp/xso and aioxmpp/xml.py, everything else is then just schemas (which are really useful no matter which approach) and business logic
15:54:49
jonas’
https://hg.prosody.im/trunk/file/tip/util/xml.lua this is a simple schema-less sax->dom approach
15:55:05
jonas’
plus the DOM implementation in https://hg.prosody.im/trunk/file/tip/util/stanza.lua
15:55:10
jonas’
wouldn't say that this is "a lot of code" :)
15:55:11
qrpnxz
has left
15:55:25
qrpnxz
has joined
15:55:28
jonas’
(considering the amount of business logic involved with xmpp in general)
15:55:29
Zash
https://hg.prosody.im/trunk/file/tip/util/xmppstream.lua is the one actually used for parsing xmpp
15:55:38
jonas’
oh yeah, I meant to link that
15:55:42
Zash
has some session related logic in there tho
15:55:43
jonas’
my history failed me
15:56:05
MattJ
The extra stuff in xmppstream is mostly about stanza size accounting, and associating streams with XMPP sessions
15:56:25
MattJ
The DOM-building part is the same as util.xml in the first link (at least, it is since a couple of weeks ago... :) )
15:57:00
MattJ
and yes, it's quite straightforward and I've written equivalent code a bunch of times in a bunch of languages and environments
15:57:16
MattJ
It's definitely my preferred way of doing things
16:01:40
qrpnxz
has left
16:01:41
qrpnxz
has joined
16:03:24
thomaslewis
has joined
16:05:36
doge
has left
16:05:40
thomaslewis
has left
16:12:40
emus
has left
16:13:35
drops
has left
16:13:41
drops
has joined
16:16:49
Wojtek
has left
16:17:31
Wojtek
has joined
16:18:24
PapaTutuWawa
has joined
16:21:39
drops
has left
16:21:50
drops
has joined
16:23:54
selurvedu
has joined
16:24:36
9lakes
has left
16:30:32
selurvedu
has left
16:30:54
selurvedu
has joined
16:32:45
xnamed
has left
16:33:09
xnamed
has joined
16:35:04
dezant
has left
16:41:06
jubalh
has joined
16:41:39
pep.
goffi: right, thanks
16:42:25
emus
has joined
16:45:25
Millesimus
has left
16:45:44
Millesimus
has joined
16:46:11
9lakes
has joined
16:46:37
rafasaurus
has left
16:46:39
mac
has left
16:50:27
rafasaurus
has joined
16:52:05
mac
has joined
16:53:47
jubalh
has left
17:11:43
COM8
has joined
17:11:44
COM8
has left
17:15:06
al
has joined
17:15:43
jubalh
has joined
17:15:50
spectrum
has left
17:15:59
jubalh
has left
17:19:11
drops
has left
17:19:49
drops
has joined
17:25:49
qwestion
has joined
17:26:23
jubalh
has joined
17:26:30
jubalh
has left
17:29:03
larma
has joined
17:35:17
kikuchiyo
has left
17:36:11
PapaTutuWawa
has left
17:36:15
selurvedu
has left
17:38:56
PapaTutuWawa
has joined
17:39:31
jgart
has joined
17:44:32
suohua
has left
17:44:33
jubalh
has joined
17:55:41
al
has left
17:59:16
thomaslewis
has joined
18:00:34
thomaslewis
has left
18:10:15
msavoritias
has left
18:10:26
drops
has left
18:10:32
drops
has joined
18:13:54
msavoritias
has joined
18:15:38
mac
has left
18:16:55
jubalh
has left
18:17:26
jubalh
has joined
18:18:29
jubalh
has left
18:20:23
drops
has left
18:20:34
drops
has joined
18:20:54
drops
has left
18:21:01
drops
has joined
18:21:41
spectrum
has joined
18:21:43
drops
has left
18:22:21
drops
has joined
18:27:23
Kiwi
has left
18:28:09
Kiwi
has joined
18:28:47
thomaslewis
has joined
18:28:53
COM8
has joined
18:28:54
COM8
has left
18:29:08
thomaslewis
has left
18:30:51
syrupthinker
has joined
18:32:48
drops
has left
18:33:26
drops
has joined
18:35:25
rom1dep
has left
18:38:02
rom1dep
has joined
18:41:59
syrupthinker
has left
18:42:25
al
has joined
18:47:41
Neustradamus
has left
18:48:20
me9
has left
18:52:20
emus
has left
18:54:11
emus
has joined
18:56:05
Squeaky Latex Folf
has left
18:56:05
mh
has left
18:56:07
Squeaky Latex Folf
has joined
19:02:27
Millesimus
has left
19:03:14
mh
has joined
19:05:27
junaid
has joined
19:09:48
drops
has left
19:09:58
drops
has joined
19:10:19
drops
has left
19:10:25
drops
has joined
19:11:18
Millesimus
has joined
19:19:15
jubalh
has joined
19:19:55
qwestion
has left
19:22:08
mac
has joined
19:22:21
rom1dep
has left
19:24:10
Wojtek
has left
19:29:30
rom1dep
has joined
19:46:33
Kiwi
has left
19:51:23
drops
has left
19:51:30
drops
has joined
19:51:58
drops
has left
19:52:05
drops
has joined
19:52:28
drops
has left
19:52:35
drops
has joined
20:03:15
mh
has left
20:05:20
mh
has joined
20:10:00
Alacer_dsrt
has joined
20:11:12
Alacer_dsrt
has left
20:13:13
xnamed
has left
20:14:43
nephele
has joined
20:15:42
dezant
has joined
20:18:08
al
has left
20:20:59
drops
has left
20:21:05
drops
has joined
20:21:33
drops
has left
20:21:40
drops
has joined
20:22:07
drops
has left
20:22:23
mh
has left
20:22:27
mh
has joined
20:22:36
Kiwi
has joined
20:23:29
drops
has joined
20:23:54
drops
has left
20:25:32
drops
has joined
20:26:20
nephele
has left
20:29:20
drops
has left
20:29:27
drops
has joined
20:29:54
drops
has left
20:30:01
drops
has joined
20:30:24
drops
has left
20:31:22
drops
has joined
20:33:18
drops
has left
20:33:25
drops
has joined
20:34:55
drops
has left
20:35:04
drops
has joined
20:35:22
drops
has left
20:35:29
drops
has joined
20:35:51
Millesimus
has left
20:35:58
drops
has left
20:38:27
drops
has joined
20:38:50
drops
has left
20:39:28
drops
has joined
20:40:48
drops
has left
20:40:55
drops
has joined
20:45:23
xnamed
has joined
20:51:00
Millesimus
has joined
20:54:21
Yagizа
has left
20:56:48
emus
has left
20:59:18
Millesimus
has left
21:00:02
x51
has joined
21:06:06
Squeaky Latex Folf
has left
21:06:26
Squeaky Latex Folf
has joined
21:06:56
drops
has left
21:07:03
drops
has joined
21:07:28
drops
has left
21:07:34
drops
has joined
21:07:41
thomaslewis
has joined
21:08:04
thomaslewis
has left
21:12:39
Millesimus
has joined
21:16:04
x51
has left
21:20:36
goffi
has left
21:21:57
drops
has left
21:23:08
drops
has joined
21:23:29
drops
has left
21:23:36
drops
has joined
21:24:01
drops
has left
21:24:08
drops
has joined
21:25:23
Millesimus
has left
21:25:53
kikuchiyo
has joined
21:28:51
drops
has left
21:28:55
drops
has joined
21:29:22
drops
has left
21:29:27
drops
has joined
21:30:10
drops
has left
21:30:13
drops
has joined
21:30:25
drops
has left
21:30:28
drops
has joined
21:32:50
jubalh
has left
21:34:25
Millesimus
has joined
21:35:14
drops
has left
21:35:18
drops
has joined
21:37:09
nephele
has joined
21:37:42
Squeaky Latex Folf
has left
21:37:44
Squeaky Latex Folf
has joined
21:38:33
nephele
has left
21:41:50
Millesimus
has left
21:49:13
xecks
has left
21:50:12
xecks
has joined
21:56:03
Millesimus
has joined
21:57:01
marmistrz
has joined
22:03:12
PapaTutuWawa
has left
22:03:55
Millesimus
has left
22:08:10
emus
has joined
22:14:26
Squeaky Latex Folf
has left
22:17:53
Squeaky Latex Folf
has joined
22:17:59
spectrum
has left
22:17:59
antranigv
has left
22:17:59
Apollo
has left
22:17:59
rafasaurus
has left
22:21:13
inky
has left
22:21:52
SouL
has left
22:22:21
antranigv
has joined
22:22:33
inky
has joined
22:24:22
marc0s
has left
22:24:23
marc0s
has joined
22:24:40
jubalh
has joined
22:24:59
jubalh
has left
22:26:04
Millesimus
has joined
22:32:13
Neustradamus
has joined
22:32:33
mac
has left
22:32:33
contrapunctus
has left
22:32:33
9lakes
has left
22:33:42
9lakes
has joined
22:38:33
Millesimus
has left
22:40:11
jubalh
has joined
22:41:53
jgart
has left
22:45:59
dezant
has left
22:50:40
antranigv
has left
22:51:05
Millesimus
has joined
22:59:15
al
has joined
23:00:05
huhn
has left
23:06:34
sonny
has left
23:06:44
sonny
has joined
23:07:12
sonny
has left
23:07:21
sonny
has joined
23:10:30
Squeaky Latex Folf
has left
23:10:32
Squeaky Latex Folf
has joined
23:14:33
dezant
has joined
23:15:36
atomicwatch
has left
23:17:55
selurvedu
has joined
23:19:54
thomaslewis
has joined
23:21:00
selurvedu
has left
23:21:56
selurvedu
has joined
23:22:48
marc0s
has left
23:22:50
marc0s
has joined
23:24:08
msavoritias
has left
23:25:12
thomaslewis
has left
23:30:57
suohua
has joined
23:48:09
emus
has left
23:49:06
doge
has joined
23:49:36
suohua
has left
23:49:40
suohua
has joined
23:53:18
doge
has left
23:57:10
selurvedu
has left
23:58:29
selurvedu
has joined