mirror of
https://github.com/FluuxIO/go-xmpp
synced 2024-11-11 07:11:03 +00: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.
14 lines
387 B
Go
14 lines
387 B
Go
package stanza
|
|
|
|
import "encoding/xml"
|
|
|
|
// Open Packet
|
|
// Reference: WebSocket connections must start with this element
|
|
// https://tools.ietf.org/html/rfc7395#section-3.4
|
|
type WebsocketOpen struct {
|
|
XMLName xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-framing open"`
|
|
From string `xml:"from,attr"`
|
|
Id string `xml:"id,attr"`
|
|
Version string `xml:"version,attr"`
|
|
}
|