summaryrefslogtreecommitdiff
path: root/xmpp/session.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/session.go')
-rw-r--r--xmpp/session.go4
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