From b31c29a03da97a11436d6e076a99ca9598c28f9d Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Thu, 11 Jan 2018 23:00:59 +0100 Subject: [PATCH] Implements dummy auth + stream error --- cmd/xmpp_component/xmpp_component.go | 2 +- component.go | 45 ++++++++++++++++++++++++++-- parser.go | 7 +++-- stream.go | 5 ++++ 4 files changed, 53 insertions(+), 6 deletions(-) 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 = "