diff --git a/cmd/xmpp_component/xmpp_component.go b/cmd/xmpp_component/xmpp_component.go index 65c0e4b..ea97c1f 100644 --- a/cmd/xmpp_component/xmpp_component.go +++ b/cmd/xmpp_component/xmpp_component.go @@ -3,5 +3,5 @@ package main import "fluux.io/xmpp" func main() { - xmpp.Open("test") + xmpp.Open("mqtt.localhost") } diff --git a/component.go b/component.go index d457d88..d5555d2 100644 --- a/component.go +++ b/component.go @@ -1,7 +1,10 @@ package xmpp import ( + "encoding/xml" + "errors" "fmt" + "io" "net" "time" ) @@ -14,24 +17,60 @@ const componentStreamOpen = "