From dee833b803494ce962c577ddf950795a2fd490ae Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 30 Jun 2023 20:40:47 +0200 Subject: Send initial presence after resource result This completes the connection process. --- xmpp/session.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'xmpp/session.go') diff --git a/xmpp/session.go b/xmpp/session.go index bfa2582..a43e4f4 100644 --- a/xmpp/session.go +++ b/xmpp/session.go @@ -12,13 +12,14 @@ type SessionDisconnect struct{} type SessionShouldDisconnect struct{} type session struct { - jid string - pwd string - in chan any - out chan<- any - transport *tls.Conn - ed encoderDecoder - rx chan xml.Token + jid string + pwd string + in chan any + out chan<- any + transport *tls.Conn + ed encoderDecoder + rx chan xml.Token + resourceReq string } func StartSession(out chan<- any, jid string, pwd string) (in chan<- any) { -- cgit v1.2.3-70-g09d2