diff options
author | xengineering <me@xengineering.eu> | 2023-06-05 18:11:49 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-06-05 18:11:49 +0200 |
commit | feb6a5a38ba15d0cf4bd88283093174991e66eaa (patch) | |
tree | d07f8908c90c873bfc7675d13ef02e7e6037ee2d /xmpp/stream.go | |
parent | 89d44601930f4a9452fd40c2262652b1a847a8cf (diff) | |
download | limox-feb6a5a38ba15d0cf4bd88283093174991e66eaa.tar limox-feb6a5a38ba15d0cf4bd88283093174991e66eaa.tar.zst limox-feb6a5a38ba15d0cf4bd88283093174991e66eaa.zip |
Re-implement initial stream start/end
Diffstat (limited to 'xmpp/stream.go')
-rw-r--r-- | xmpp/stream.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmpp/stream.go b/xmpp/stream.go index 803071a..d0680aa 100644 --- a/xmpp/stream.go +++ b/xmpp/stream.go @@ -5,6 +5,15 @@ import ( "log" ) +type stream struct { + session *session + end xml.EndElement +} + +func (s *stream) terminate() { + s.session.ed.encodeToken(s.end) +} + func sendStreamStart(enc *encoder, jid string) xml.EndElement { start := xml.StartElement{ xml.Name{"jabber:client", "stream:stream"}, |