~samwhited/xmpp

478cf329390dd0ae16dbefcf2fea9a0fa572344d — Sam Whited 2 years ago cca84ea
xmpp: minor update to Send example in docs
1 files changed, 1 insertions(+), 1 deletions(-)

M doc.go
M doc.go => doc.go +1 -1
@@ 88,7 88,7 @@
// These can be sent with the Send and SendElement methods.
//
//     // Send initial presence to let the server know we want to receive messages.
//     _, err = session.Send(stanza.WrapPresence(nil, stanza.AvailablePresence, nil))
//     _, err = session.Send(context.TODO(), stanza.WrapPresence(nil, stanza.AvailablePresence, nil))
//
// For Send to correctly handle IQ responses, and to make the common case of
// polling for incoming XML on the input stream—and possibly writing to the