go-xmpp icon indicating copy to clipboard operation
go-xmpp copied to clipboard

"Echo" example from README should following RFC6121

Open adefirmanf opened this issue 4 years ago • 0 comments

Based on RFC6121, attributes for sending message from README and example doesn't following the documentation. It produce the message doesn't receive to client.

I would suggest to PR the example for update README and example library. Adding "chat" as type will resolve this issue.

stanza.Message{Attrs: stanza.Attrs{To: msg.From, Type: "chat"}, Body: msg.Body}

Reference : https://xmpp.org/rfcs/rfc6121.html#message-syntax

adefirmanf avatar Dec 17 '20 09:12 adefirmanf