mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-23 02:52:00 -08:00
92329b48e6
XMPP and WebSocket transports require different open and close stanzas. To handle this the responsibility handling those and creating the XML decoder is moved to the Transport.
15 lines
381 B
Go
15 lines
381 B
Go
package stanza
|
|
|
|
import "encoding/xml"
|
|
|
|
// Start of stream
|
|
// Reference: XMPP Core stream open
|
|
// https://tools.ietf.org/html/rfc6120#section-4.2
|
|
type Stream struct {
|
|
XMLName xml.Name `xml:"http://etherx.jabber.org/streams stream"`
|
|
From string `xml:"from,attr"`
|
|
To string `xml:"to,attr"`
|
|
Id string `xml:"id,attr"`
|
|
Version string `xml:"version,attr"`
|
|
}
|