Commit Graph

4 Commits

Author SHA1 Message Date
Matt Goodall 438164a9d9 Better/correct Error type.
XMPP errors are a real pain - they have up to 3 elements. 2 are
XMPP-specific and have one of two namespaces, the other is application
specific. Go's xml package is good, but it's not that good!

So, I've had to handle the error data as a generic Payload string attr
and provide methods for retrieving the bits as conveniently as possible.

Note: there's no application-specific error data yet but it should slot
in ok now.
2012-07-18 11:22:59 +01:00
Matt Goodall 2c5fbc7122 Log incoming stanzas before they're unmarshaled.
A couple of bits in stream.go are commented out at the moment. They'll
be back in a moment, once the send/recv logging is optional.
2012-07-11 23:24:32 +01:00
Matt Goodall 2a11a800da Extract writeXMLStartElement func. 2012-07-11 15:35:52 +01:00
Matt Goodall b9e29ca2b3 Make the stream's API more explicit, add some docs, improved var names. 2012-07-08 22:40:31 +01:00