1
0
Fork 0

Add message type and error condition

This commit is contained in:
Chteufleur 2016-07-18 20:12:28 +02:00
parent 5b2aa0c077
commit 3f618b50f5
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,10 @@ const (
IQTypeSet = "set"
IQTypeResult = "result"
IQTypeError = "error"
MessageTypeNormal = "normal"
MessageTypeChat = "chat"
MessageTypeError = "error"
)
// XMPP <iq/> stanza.
@ -166,4 +170,6 @@ type ErrorCondition xml.Name
// Stanza errors.
var (
FeatureNotImplemented = ErrorCondition{nsErrorStanzas, "feature-not-implemented"}
RemoteServerNotFound = ErrorCondition{nsErrorStanzas, "remote-server-not-found"}
ServiceUnavailable = ErrorCondition{nsErrorStanzas, "service-unavailable"}
)