Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Conditions for stream:error stanzas not available #58
We're using the defined conditions for stream:errors to display detailed error messaging to users when they get disconnected. It appears that strophe isn't handling any condition nodes other than "conflict" which it checks for specifically and forwards on.
One example of the handling is around the _dataRecv function in core.js:
The spec for the stream:error and condition nodes that I'm referring to is at http://xmpp.org/rfcs/rfc3920.html#rfc.section.4.7.2
Basically, we send data along the lines of:
I'm trying get the "system-shutdown" and "text" nodes in order to display some more specific messaging beyond "You have been disconnected" to the user.