Add message type and error condition
This commit is contained in:
parent
5b2aa0c077
commit
3f618b50f5
|
|
@ -11,6 +11,10 @@ const (
|
||||||
IQTypeSet = "set"
|
IQTypeSet = "set"
|
||||||
IQTypeResult = "result"
|
IQTypeResult = "result"
|
||||||
IQTypeError = "error"
|
IQTypeError = "error"
|
||||||
|
|
||||||
|
MessageTypeNormal = "normal"
|
||||||
|
MessageTypeChat = "chat"
|
||||||
|
MessageTypeError = "error"
|
||||||
)
|
)
|
||||||
|
|
||||||
// XMPP <iq/> stanza.
|
// XMPP <iq/> stanza.
|
||||||
|
|
@ -166,4 +170,6 @@ type ErrorCondition xml.Name
|
||||||
// Stanza errors.
|
// Stanza errors.
|
||||||
var (
|
var (
|
||||||
FeatureNotImplemented = ErrorCondition{nsErrorStanzas, "feature-not-implemented"}
|
FeatureNotImplemented = ErrorCondition{nsErrorStanzas, "feature-not-implemented"}
|
||||||
|
RemoteServerNotFound = ErrorCondition{nsErrorStanzas, "remote-server-not-found"}
|
||||||
|
ServiceUnavailable = ErrorCondition{nsErrorStanzas, "service-unavailable"}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue