~samwhited/xmpp

f1bd069c384cfd76f91d7912cc490f6c4a582f5c — Sam Whited 1 year, 7 months ago 28c6a9d
examples/echobot: update to use new dial package
2 files changed, 3 insertions(+), 2 deletions(-)

M examples/echobot/echo.go
M examples/echobot/go.mod
M examples/echobot/echo.go => examples/echobot/echo.go +2 -1
@@ 15,6 15,7 @@ import (
	"mellium.im/sasl"
	"mellium.im/xmlstream"
	"mellium.im/xmpp"
	"mellium.im/xmpp/dial"
	"mellium.im/xmpp/jid"
	"mellium.im/xmpp/stanza"
)


@@ 25,7 26,7 @@ func echo(addr, pass string, xmlIn, xmlOut io.Writer, logger, debug *log.Logger)
		return fmt.Errorf("Error parsing address %q: %w", addr, err)
	}

	conn, err := xmpp.DialClient(context.TODO(), "tcp", j)
	conn, err := dial.Client(context.TODO(), "tcp", j)
	if err != nil {
		return fmt.Errorf("Error dialing sesion: %w", err)
	}

M examples/echobot/go.mod => examples/echobot/go.mod +1 -1
@@ 5,7 5,7 @@ go 1.13
require (
	mellium.im/sasl v0.2.1
	mellium.im/xmlstream v0.13.3
	mellium.im/xmpp v0.9.0
	mellium.im/xmpp v0.0.0
)

replace mellium.im/xmpp => ../../