diff options
author | xengineering <me@xengineering.eu> | 2023-07-04 13:48:34 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-07-04 13:48:34 +0200 |
commit | 92534f5af88b42665ad44f2495fe5dfb116d3406 (patch) | |
tree | 53fe906edb6ce70f22e6602469b9ce4da5d55675 /xmpp/session.go | |
parent | 45b04ef092a99d0d3f355e27896c82f1dbf15d28 (diff) | |
download | limox-92534f5af88b42665ad44f2495fe5dfb116d3406.tar limox-92534f5af88b42665ad44f2495fe5dfb116d3406.tar.zst limox-92534f5af88b42665ad44f2495fe5dfb116d3406.zip |
First working version of new RX concept
This uses xml.Decoder.DecodeElement() which makes parsing way easier.
This first step is just able to parse stream features partially.
Diffstat (limited to 'xmpp/session.go')
-rw-r--r-- | xmpp/session.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp/session.go b/xmpp/session.go index 4be3386..6abc343 100644 --- a/xmpp/session.go +++ b/xmpp/session.go @@ -20,7 +20,7 @@ type session struct { out chan<- any transport *tls.Conn tx *xml.Encoder - rx chan xml.Token + rx chan any resourceReq string } @@ -31,7 +31,7 @@ func StartSession(out chan<- any, jid string, pwd string) (in chan<- any) { s.pwd = pwd s.in = make(chan any) s.out = out - s.rx = make(chan xml.Token, 0) + s.rx = make(chan any, 0) go s.run() |