* _Private_ function to handle websockets messages.
* _Private_ function to handle websockets messages.
*
*
* This function parses each of the messages as if they are full documents.
* This function parses each of the messages as if they are full documents. [TODO : We may actually want to use a SAX Push parser].
* [TODO : We may actually want to use a SAX Push parser].
*
* Since all XMPP traffic starts with
* <stream:stream version='1.0'
* xml:lang='en'
* xmlns='jabber:client'
* xmlns:stream='http://etherx.jabber.org/streams'
* id='3697395463'
* from='SERVER'>
*
* The first stanza will always fail to be parsed.
*
*
* Additionally, the seconds stanza will always be <stream:features> with
* Since all XMPP traffic starts with "<stream:stream version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3697395463' from='SERVER'>"
* the stream NS defined in the previous stanza, so we need to 'force'
* The first stanza will always fail to be parsed...
* the inclusion of the NS in this stanza.
* Addtionnaly, the seconds stanza will always be a <stream:features> with the stream NS defined in the previous stanza... so we need to 'force' the inclusion of the NS in this stanza!
* _Private_ function to handle websockets messages.
* _Private_ function to handle websockets messages.
*
*
* This function parses each of the messages as if they are full documents.
* This function parses each of the messages as if they are full documents. [TODO : We may actually want to use a SAX Push parser].
* [TODO : We may actually want to use a SAX Push parser].
*
* Since all XMPP traffic starts with
* <stream:stream version='1.0'
* xml:lang='en'
* xmlns='jabber:client'
* xmlns:stream='http://etherx.jabber.org/streams'
* id='3697395463'
* from='SERVER'>
*
* The first stanza will always fail to be parsed.
*
*
* Additionally, the seconds stanza will always be <stream:features> with
* Since all XMPP traffic starts with "<stream:stream version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3697395463' from='SERVER'>"
* the stream NS defined in the previous stanza, so we need to 'force'
* The first stanza will always fail to be parsed...
* the inclusion of the NS in this stanza.
* Addtionnaly, the seconds stanza will always be a <stream:features> with the stream NS defined in the previous stanza... so we need to 'force' the inclusion of the NS in this stanza!