mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-22 10:32:01 -08:00
390336b894
Added an overly primitive "disconnect" for the client to use in the chat client example
17 lines
428 B
Go
17 lines
428 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"`
|
|
}
|
|
|
|
const StreamClose = "</stream:stream>"
|