Package forward implements forwarding messages.
const ( NS = "urn:xmpp:forward:0" )
Namespaces used by this package, provided as a convenience.
Wrap forwards the provided token stream by wrapping it in a new message stanza and recording the original delivery time of the stanza. The body is in addition to the forwarded stanza and is not meant as a fallback in case the forwarded message cannot be displayed.
The token stream is expected to be a stanza, but this is not enforced.
Forwarded can be embedded into another struct along with a stanza to wrap the stanza for forwarding.
func (Forwarded) TokenReader ¶
TokenReader implements xmlstream.Marshaler.
Wrap wraps the provided token reader (which should be a stanza, but this is not enforced) to prepare it for forwarding.