From feb6a5a38ba15d0cf4bd88283093174991e66eaa Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 5 Jun 2023 18:11:49 +0200 Subject: Re-implement initial stream start/end --- xmpp/stream.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xmpp/stream.go') 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"}, -- cgit v1.2.3-70-g09d2