diff options
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"}, |