~samwhited/xmpp

9075f1bc91fd56c102d605d4342a5af004a1f734 — Sam Whited 3 months ago 9ecde1b
xmpp: fix docs showing old API

The old stanza.WrapPresence function is now a method on the presence
itself (stanza.Presence{}.Wrap()).

Signed-off-by: Sam Whited <sam@samwhited.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M doc.go
M doc.go => doc.go +1 -1
@@ 107,7 107,7 @@
// the provided start element token or stanza.
//
//     // Send initial presence to let the server know we want to receive messages.
//     _, err = session.Send(context.TODO(), stanza.WrapPresence(jid.JID{}, stanza.AvailablePresence, nil))
//     _, err = session.Send(context.TODO(), stanza.Presence{}.Wrap(nil))
//
// For SendIQ and related methods to correctly handle IQ responses, and to make
// the common case of polling for incoming XML on the input stream—and possibly