aboutsummaryrefslogtreecommitdiff
path: root/xmpp/component.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/component.go')
-rw-r--r--xmpp/component.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmpp/component.go b/xmpp/component.go
index e484e99..d55ed6b 100644
--- a/xmpp/component.go
+++ b/xmpp/component.go
@@ -8,7 +8,9 @@ import (
"gosrc.io/xmpp"
)
-func NewComponent(conf config.XmppConfig) *xmpp.StreamManager {
+// NewComponent starts a new component and wraps it in
+// a stream manager that you should start yourself
+func NewComponent(conf config.XMPPConfig) *xmpp.StreamManager {
options := xmpp.ComponentOptions{
Address: conf.Host + ":" + conf.Port,
Domain: conf.Jid,