Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Echo" example from README should following RFC6121 #173

Open
adefirmanf opened this issue Dec 17, 2020 · 0 comments
Open

"Echo" example from README should following RFC6121 #173

adefirmanf opened this issue Dec 17, 2020 · 0 comments

Comments

@adefirmanf
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant