Skip to content

"Echo" example from README should following RFC6121  #173

@adefirmanf

Description

@adefirmanf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions