sonny
has left
00:05:17
sonny
has joined
00:05:27
larma
has left
00:05:48
sonny
has left
00:06:15
sonny
has joined
00:06:25
syrupthinker
has left
00:10:47
al
has left
00:13:13
cdcode
has left
00:17:53
atomicwatch
has left
00:31:06
atomicwatch
has joined
00:38:48
jubalh
has left
00:42:24
emus
has left
00:42:39
xnamed
has left
00:43:19
wurstsalat
has left
00:45:53
Neustradamus
has left
01:03:16
sonny
has left
01:03:45
sonny
has joined
01:03:55
marc0s
has left
01:13:15
marc0s
has joined
01:13:16
doge
has joined
01:13:56
sonny
has left
01:22:06
doge
has left
01:28:51
SouL
has left
01:33:27
doge
has joined
01:36:48
dezant
has left
01:40:56
pulkomandy
has left
02:00:38
pulkomandy
has joined
02:00:50
qwestion
has joined
02:08:51
qwestion
has left
02:09:31
qwestion
has joined
02:11:07
qwestion
has left
02:11:30
qwestion
has joined
02:14:07
qwestion
has left
02:14:30
qwestion
has joined
02:15:33
qwestion
has left
02:15:57
qwestion
has joined
02:18:56
qwestion
has left
02:19:12
qwestion
has joined
02:24:02
qwestion
has left
02:24:33
qwestion
has joined
02:27:29
qwestion
has left
02:27:51
thomaslewis
has joined
02:29:51
thomaslewis
has left
02:33:07
jgart
has left
02:35:57
dezant
has joined
02:38:44
doge
has left
02:56:32
Kev
has left
02:58:16
Kev
has joined
02:58:23
qrpnxz
has left
03:12:27
qrpnxz
has joined
03:12:28
qrpnxz
has left
03:12:57
qrpnxz
has joined
03:13:07
kikuchiyo
has left
03:16:32
Umar
has joined
03:22:37
thomaslewis
has joined
03:23:00
Umar
has left
03:23:12
alacer
has joined
03:23:30
thomaslewis
has left
03:24:13
thomaslewis
has joined
03:25:05
alacer
has left
03:25:41
thomaslewis
has left
03:27:13
qwestion
has joined
03:32:01
qwestion
has left
03:32:27
qwestion
has joined
03:34:02
qwestion
has left
03:34:24
qwestion
has joined
03:35:38
qwestion
has left
03:35:47
qwestion
has joined
03:37:12
qwestion
has left
03:37:22
qwestion
has joined
03:40:33
qwestion
has left
03:40:43
Millesimus
has joined
03:40:56
qwestion
has joined
03:42:05
qwestion
has left
03:42:12
mac
has left
03:50:50
mac
has joined
03:50:51
Yagizа
has joined
03:53:53
serge90
has joined
04:05:09
doge
has joined
04:11:00
doge
has left
04:27:51
doge
has joined
05:00:56
Millesimus
has left
05:07:03
Zash
has left
05:16:13
Zash
has joined
05:16:59
jgart
has joined
05:20:24
emus
has joined
05:20:36
Millesimus
has joined
05:22:10
SouL
has joined
05:22:37
paul
has joined
05:37:40
COM8
has joined
05:46:52
COM8
has left
05:46:54
COM8
has joined
05:48:34
COM8
has left
05:48:58
dezant
has left
05:51:31
mac
has left
06:33:28
mac
has joined
06:33:33
rafasaurus
has left
06:51:37
rafasaurus
has joined
06:53:37
wurstsalat
has joined
06:53:44
msavoritias
has joined
06:57:18
jubalh
has joined
07:14:53
rafasaurus
has left
07:17:49
Alex
has left
07:29:48
rafasaurus
has joined
07:31:47
qwe
has joined
07:33:42
rafasaurus
has left
07:40:57
rafasaurus
has joined
07:41:08
goffi
has joined
07:50:12
Alex
has joined
07:50:21
rafasaurus
has left
07:51:55
sonny
has joined
07:54:12
debacle
has joined
07:58:08
goffi
has left
08:03:03
goffi
has joined
08:03:09
drops
has left
08:07:38
drops
has joined
08:07:43
doge
has left
08:19:17
jubalh
has left
08:21:04
goffi
has left
08:21:05
qrpnxz
has left
08:22:30
qrpnxz
has joined
08:22:31
qrpnxz
has left
08:23:02
qrpnxz
has joined
08:23:11
qrpnxz
has left
08:28:30
qrpnxz
has joined
08:28:31
qrpnxz
has left
08:29:01
qrpnxz
has joined
08:29:14
doge
has joined
08:31:33
msavoritias
has left
08:35:04
goffi
has joined
08:35:47
homebeach
has left
08:36:46
Matrix Traveler (bot)
has left
08:36:46
Matrix Traveler (bot)
has joined
08:36:47
homebeach
has joined
08:36:47
msavoritias
has joined
08:39:37
rafasaurus
has joined
08:47:08
rubi
has left
08:59:16
rubi
has joined
08:59:18
nephele
has joined
09:00:46
nephele
has left
09:01:27
nephele
has joined
09:01:28
rafasaurus
has left
09:03:32
jgart
has left
09:08:09
jgart
has joined
09:09:54
jgart
has left
09:10:21
nephele
has left
09:11:31
doge
has left
09:12:27
Neustradamus
has joined
09:33:57
jubalh
has joined
09:45:28
jubalh
has left
09:46:40
larma
has joined
09:49:25
larma
has left
09:51:39
larma
has joined
09:51:49
xecks
has left
09:58:10
suohua
has joined
09:58:55
suohua
has left
10:00:31
suohua
has joined
10:00:35
Martin
has left
10:04:59
Martin
has joined
10:05:19
rafasaurus
has joined
10:06:13
suohua
has left
10:06:51
xecks
has joined
10:09:31
jubalh
has joined
10:10:22
suohua
has joined
10:13:05
doge
has joined
10:18:18
mac
has left
10:24:39
Millesimus
has left
10:24:39
mh
has left
10:29:20
mh
has joined
10:29:34
larma
has left
10:29:42
larma
has joined
10:29:59
debacle
has left
10:35:34
jubalh
has left
10:36:29
Millesimus
has joined
10:36:42
rafasaurus
has left
10:37:17
msavoritias
has left
10:37:32
msavoritias
has joined
10:40:52
Millesimus
has left
10:42:47
kikuchiyo
has joined
10:43:15
mac
has joined
10:46:02
suohua
has left
10:47:20
suohua
has joined
10:49:46
qrpnxz
has left
10:51:33
qrpnxz
has joined
10:51:35
qrpnxz
has left
10:52:04
qrpnxz
has joined
10:52:10
doge
has left
10:55:29
Vaulor
has left
10:59:39
qwe
has left
11:05:24
qwe
has joined
11:05:31
qwe
has left
11:05:31
Vaulor
has joined
11:05:58
Wojtek
has joined
11:09:55
Squeaky Latex Folf
has left
11:17:52
Squeaky Latex Folf
has joined
11:20:29
doge
has joined
11:21:56
kikuchiyo
has left
11:25:57
kikuchiyo
has joined
11:28:29
jubalh
has joined
11:36:29
jubalh
has left
11:36:50
xnamed
has joined
11:49:51
COM8
has joined
11:50:07
COM8
has left
11:50:14
ralphm
has left
11:50:26
rafasaurus
has joined
11:52:54
selurvedu
has joined
11:57:41
selurvedu
has left
11:58:52
spectrum
has left
12:08:41
nephele
has joined
12:09:06
nephele
has left
12:11:51
rafasaurus
has left
12:11:52
nephele
has joined
12:12:38
nephele
has left
12:13:04
Millesimus
has joined
12:14:35
rafasaurus
has joined
12:24:32
al
has joined
12:24:43
rafasaurus
has left
12:29:51
doge
has left
12:29:58
Millesimus
has left
12:31:00
Millesimus
has joined
12:36:26
xnamed
has left
12:38:10
mac
has left
12:39:32
dezant
has joined
12:41:51
doge
has joined
13:02:36
doge
has left
13:04:34
mac
has joined
13:06:11
doge
has joined
13:07:54
spectrum
has joined
13:10:47
nephele
has joined
13:13:23
nephele
has left
13:13:49
Millesimus
has left
13:16:48
nephele
has joined
13:17:32
Millesimus
has joined
13:19:53
Apollo
has left
13:20:42
Apollo
has joined
13:20:45
nephele
has left
13:28:11
mac
has left
13:28:45
mac
has joined
13:28:48
homebeach
has left
13:28:48
Matrix Traveler (bot)
has left
13:28:48
Matrix Traveler (bot)
has joined
13:28:49
homebeach
has joined
13:28:49
debacle
has joined
13:31:31
nephele
has joined
13:35:03
nephele
has left
13:35:44
mac
has left
13:38:12
mac
has joined
13:38:49
Wojtek
has left
13:41:17
Wojtek
has joined
13:41:35
rafasaurus
has joined
13:42:59
xnamed
has joined
14:03:47
Alex
has left
14:05:06
Alex
has joined
14:05:09
cdcode
has joined
14:25:55
al
has left
14:27:57
homebeach
has left
14:33:20
Matrix Traveler (bot)
has left
14:33:20
Matrix Traveler (bot)
has joined
14:33:22
homebeach
has joined
14:33:22
homebeach
has left
14:36:45
Matrix Traveler (bot)
has left
14:36:45
Matrix Traveler (bot)
has joined
14:36:46
homebeach
has joined
14:36:46
Wojtek
has left
14:39:36
Wojtek
has joined
14:40:16
me9
has joined
14:42:04
pep.
14:42:44
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?)
Kev
14:43:31
Correct. Get caps in presence, check against caps cache, if missing disco client, check and shove result in cache.
pep.
14:43:54
ta
pep.
14:46:48
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?
Zash
14:47:32
@from on a directed presence? that'll always have their full jid there
jonas’
14:47:56
@from on any type="available" presence you receive, actually
pep.
14:48:02
Do I get a directed presence from somebody not in my roster?
jonas’
14:48:12
only if they explicitly send it to you
pep.
14:48:25
Do clients do that?
jonas’
14:48:32
probably not
pep.
14:48:44
Ok
jonas’
14:48:45
fulljids are also found in the @from of IQs and messages though
pep.
14:49:24
So if I don't get a directed presence I'm likely not getting their device capabilities
jonas’
14:49:30
correct
jonas’
14:49:38
s/likely/at all/
pep.
14:49:41
Ok
jonas’
14:49:53
you'll also never notice when a device goes offline or when their capabilities change
Zash
14:50:37
if you got directed presence? then the server should send you unavailable when they go offline
jonas’
14:50:51
Zash, "if I don't get a directed presence"
Zash
14:51:29
ah
Zash
14:51:34
well then you are in the dark
Millesimus
has left
14:52:48
mac
has left
14:55:30
larma
has left
14:57:15
Millesimus
has joined
14:59:24
doge
has left
15:07:18
ralphm
has joined
15:08:10
mac
has joined
15:08:33
suohua
has left
15:09:32
suohua
has joined
15:11:37
Millesimus
has left
15:18:08
goffi
15:27:05
pep.: you can't disco bare jid if you're not in the roster (see my recent email on standard@ about that).
rubi
15:27:36
> s/likely/at all/
> I'm at all not getting
:P
mh
has left
15:28:31
mh
has joined
15:28:46
qrpnxz
has left
15:30:39
homebeach
has left
15:30:39
Matrix Traveler (bot)
has left
15:30:39
qrpnxz
has joined
15:30:40
Matrix Traveler (bot)
has joined
15:30:40
homebeach
has joined
15:30:41
doge
has joined
15:32:33
rafasaurus
has left
15:35:08
doge
15:35:52
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?
jonas’
15:36:09
SAX, and it's not that tricky actually
homebeach
has left
15:36:09
Matrix Traveler (bot)
has left
15:36:09
Matrix Traveler (bot)
has joined
15:36:11
homebeach
has joined
15:36:11
jonas’
15:36:45
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.
homebeach
has left
15:36:45
Matrix Traveler (bot)
has left
15:36:45
Matrix Traveler (bot)
has joined
15:36:47
moparisthebest
15:36:47
you *can* use a regular DOM parser, with some hax
homebeach
has joined
15:36:47
jonas’
15:36:59
but there's also a mode where stanzas are written into a DOM
jonas’
15:37:38
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
jonas’
15:37:45
if you're into the pain of using DOM
moparisthebest
15:37:45
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
jonas’
15:37:53
oh yes, ^
jonas’
15:38:03
otherwise, happy billion laughs
moparisthebest
15:38:52
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
Millesimus
has joined
15:41:13
rafasaurus
has joined
15:42:00
Kev
15:44:03
I typically read with a stream parser, and then construct a pseudo-dom from it.
Zash
15:44:26
Pretty much how Prosody works too
rafasaurus
has left
15:47:58
rafasaurus
has joined
15:48:23
doge
15:53:48
Either way seems to take lots of code
doge
15:54:01
Especially "directly from sax" approach, looking at aioxmpp source
qrpnxz
has left
15:54:39
qrpnxz
has joined
15:54:40
jonas’
15:54:43
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
jonas’
15:54:49
https://hg.prosody.im/trunk/file/tip/util/xml.lua this is a simple schema-less sax->dom approach
jonas’
15:55:05
plus the DOM implementation in https://hg.prosody.im/trunk/file/tip/util/stanza.lua
jonas’
15:55:10
wouldn't say that this is "a lot of code" :)
qrpnxz
has left
15:55:11
qrpnxz
has joined
15:55:25
jonas’
15:55:28
(considering the amount of business logic involved with xmpp in general)
Zash
15:55:29
https://hg.prosody.im/trunk/file/tip/util/xmppstream.lua is the one actually used for parsing xmpp
jonas’
15:55:38
oh yeah, I meant to link that
Zash
15:55:42
has some session related logic in there tho
jonas’
15:55:43
my history failed me
MattJ
15:56:05
The extra stuff in xmppstream is mostly about stanza size accounting, and associating streams with XMPP sessions
MattJ
15:56:25
The DOM-building part is the same as util.xml in the first link (at least, it is since a couple of weeks ago... :) )
MattJ
15:57:00
and yes, it's quite straightforward and I've written equivalent code a bunch of times in a bunch of languages and environments
MattJ
15:57:16
It's definitely my preferred way of doing things
qrpnxz
has left
16:01:40
qrpnxz
has joined
16:01:41
thomaslewis
has joined
16:03:24
doge
has left
16:05:36
thomaslewis
has left
16:05:40
emus
has left
16:12:40
drops
has left
16:13:35
drops
has joined
16:13:41
Wojtek
has left
16:16:49
Wojtek
has joined
16:17:31
PapaTutuWawa
has joined
16:18:24
drops
has left
16:21:39
drops
has joined
16:21:50
selurvedu
has joined
16:23:54
9lakes
has left
16:24:36
selurvedu
has left
16:30:32
selurvedu
has joined
16:30:54
xnamed
has left
16:32:45
xnamed
has joined
16:33:09
dezant
has left
16:35:04
jubalh
has joined
16:41:06
pep.
16:41:39
goffi: right, thanks
emus
has joined
16:42:25
Millesimus
has left
16:45:25
Millesimus
has joined
16:45:44
9lakes
has joined
16:46:11
rafasaurus
has left
16:46:37
mac
has left
16:46:39
rafasaurus
has joined
16:50:27
mac
has joined
16:52:05
jubalh
has left
16:53:47
COM8
has joined
17:11:43
COM8
has left
17:11:44
al
has joined
17:15:06
jubalh
has joined
17:15:43
spectrum
has left
17:15:50
jubalh
has left
17:15:59
drops
has left
17:19:11
drops
has joined
17:19:49
qwestion
has joined
17:25:49
jubalh
has joined
17:26:23
jubalh
has left
17:26:30
larma
has joined
17:29:03
kikuchiyo
has left
17:35:17
PapaTutuWawa
has left
17:36:11
selurvedu
has left
17:36:15
PapaTutuWawa
has joined
17:38:56
jgart
has joined
17:39:31
suohua
has left
17:44:32
jubalh
has joined
17:44:33
al
has left
17:55:41
thomaslewis
has joined
17:59:16
thomaslewis
has left
18:00:34
msavoritias
has left
18:10:15
drops
has left
18:10:26
drops
has joined
18:10:32
msavoritias
has joined
18:13:54
mac
has left
18:15:38
jubalh
has left
18:16:55
jubalh
has joined
18:17:26
jubalh
has left
18:18:29
drops
has left
18:20:23
drops
has joined
18:20:34
drops
has left
18:20:54
drops
has joined
18:21:01
spectrum
has joined
18:21:41
drops
has left
18:21:43
drops
has joined
18:22:21
Kiwi
has left
18:27:23
Kiwi
has joined
18:28:09
thomaslewis
has joined
18:28:47
COM8
has joined
18:28:53
COM8
has left
18:28:54
thomaslewis
has left
18:29:08
syrupthinker
has joined
18:30:51
drops
has left
18:32:48
drops
has joined
18:33:26
rom1dep
has left
18:35:25
rom1dep
has joined
18:38:02
syrupthinker
has left
18:41:59
al
has joined
18:42:25
Neustradamus
has left
18:47:41
me9
has left
18:48:20
emus
has left
18:52:20
emus
has joined
18:54:11
Squeaky Latex Folf
has left
18:56:05
mh
has left
18:56:05
Squeaky Latex Folf
has joined
18:56:07
Millesimus
has left
19:02:27
mh
has joined
19:03:14
junaid
has joined
19:05:27
drops
has left
19:09:48
drops
has joined
19:09:58
drops
has left
19:10:19
drops
has joined
19:10:25
Millesimus
has joined
19:11:18
jubalh
has joined
19:19:15
qwestion
has left
19:19:55
mac
has joined
19:22:08
rom1dep
has left
19:22:21
Wojtek
has left
19:24:10
rom1dep
has joined
19:29:30
Kiwi
has left
19:46:33
drops
has left
19:51:23
drops
has joined
19:51:30
drops
has left
19:51:58
drops
has joined
19:52:05
drops
has left
19:52:28
drops
has joined
19:52:35
mh
has left
20:03:15
mh
has joined
20:05:20
Alacer_dsrt
has joined
20:10:00
Alacer_dsrt
has left
20:11:12
xnamed
has left
20:13:13
nephele
has joined
20:14:43
dezant
has joined
20:15:42
al
has left
20:18:08
drops
has left
20:20:59
drops
has joined
20:21:05
drops
has left
20:21:33
drops
has joined
20:21:40
drops
has left
20:22:07
mh
has left
20:22:23
mh
has joined
20:22:27
Kiwi
has joined
20:22:36
drops
has joined
20:23:29
drops
has left
20:23:54
drops
has joined
20:25:32
nephele
has left
20:26:20
drops
has left
20:29:20
drops
has joined
20:29:27
drops
has left
20:29:54
drops
has joined
20:30:01
drops
has left
20:30:24
drops
has joined
20:31:22
drops
has left
20:33:18
drops
has joined
20:33:25
drops
has left
20:34:55
drops
has joined
20:35:04
drops
has left
20:35:22
drops
has joined
20:35:29
Millesimus
has left
20:35:51
drops
has left
20:35:58
drops
has joined
20:38:27
drops
has left
20:38:50
drops
has joined
20:39:28
drops
has left
20:40:48
drops
has joined
20:40:55
xnamed
has joined
20:45:23
Millesimus
has joined
20:51:00
Yagizа
has left
20:54:21
emus
has left
20:56:48
Millesimus
has left
20:59:18
x51
has joined
21:00:02
Squeaky Latex Folf
has left
21:06:06
Squeaky Latex Folf
has joined
21:06:26
drops
has left
21:06:56
drops
has joined
21:07:03
drops
has left
21:07:28
drops
has joined
21:07:34
thomaslewis
has joined
21:07:41
thomaslewis
has left
21:08:04
Millesimus
has joined
21:12:39
x51
has left
21:16:04
goffi
has left
21:20:36
drops
has left
21:21:57
drops
has joined
21:23:08
drops
has left
21:23:29
drops
has joined
21:23:36
drops
has left
21:24:01
drops
has joined
21:24:08
Millesimus
has left
21:25:23
kikuchiyo
has joined
21:25:53
drops
has left
21:28:51
drops
has joined
21:28:55
drops
has left
21:29:22
drops
has joined
21:29:27
drops
has left
21:30:10
drops
has joined
21:30:13
drops
has left
21:30:25
drops
has joined
21:30:28
jubalh
has left
21:32:50
Millesimus
has joined
21:34:25
drops
has left
21:35:14
drops
has joined
21:35:18
nephele
has joined
21:37:09
Squeaky Latex Folf
has left
21:37:42
Squeaky Latex Folf
has joined
21:37:44
nephele
has left
21:38:33
Millesimus
has left
21:41:50
xecks
has left
21:49:13
xecks
has joined
21:50:12
Millesimus
has joined
21:56:03
marmistrz
has joined
21:57:01
PapaTutuWawa
has left
22:03:12
Millesimus
has left
22:03:55
emus
has joined
22:08:10
Squeaky Latex Folf
has left
22:14:26
Squeaky Latex Folf
has joined
22:17:53
spectrum
has left
22:17:59
antranigv
has left
22:17:59
Apollo
has left
22:17:59
rafasaurus
has left
22:17:59
inky
has left
22:21:13
SouL
has left
22:21:52
antranigv
has joined
22:22:21
inky
has joined
22:22:33
marc0s
has left
22:24:22
marc0s
has joined
22:24:23
jubalh
has joined
22:24:40
jubalh
has left
22:24:59
Millesimus
has joined
22:26:04
Neustradamus
has joined
22:32:13
mac
has left
22:32:33
contrapunctus
has left
22:32:33
9lakes
has left
22:32:33
9lakes
has joined
22:33:42
Millesimus
has left
22:38:33
jubalh
has joined
22:40:11
jgart
has left
22:41:53
dezant
has left
22:45:59
antranigv
has left
22:50:40
Millesimus
has joined
22:51:05
al
has joined
22:59:15
huhn
has left
23:00:05
sonny
has left
23:06:34
sonny
has joined
23:06:44
sonny
has left
23:07:12
sonny
has joined
23:07:21
Squeaky Latex Folf
has left
23:10:30
Squeaky Latex Folf
has joined
23:10:32
dezant
has joined
23:14:33
atomicwatch
has left
23:15:36
selurvedu
has joined
23:17:55
thomaslewis
has joined
23:19:54
selurvedu
has left
23:21:00
selurvedu
has joined
23:21:56
marc0s
has left
23:22:48
marc0s
has joined
23:22:50
msavoritias
has left
23:24:08
thomaslewis
has left
23:25:12
suohua
has joined
23:30:57
emus
has left
23:48:09
doge
has joined
23:49:06
suohua
has left
23:49:36
suohua
has joined
23:49:40
doge
has left
23:53:18
selurvedu
has left
23:57:10
selurvedu
has joined
23:58:29