diff options
Diffstat (limited to 'xmpp')
-rw-r--r-- | xmpp/session.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmpp/session.go b/xmpp/session.go index ad90c5e..2c9fbb3 100644 --- a/xmpp/session.go +++ b/xmpp/session.go @@ -18,6 +18,10 @@ type SessionFrontend struct { Out chan any } +func (sf *SessionFrontend) Disconnect() { + go func() { sf.Out <- SessionShouldDisconnect{} }() +} + type session struct { jid string pwd string |