Closed astro closed 12 years ago
You are right - we've moved to SAX based parsing for BOSH - need to do the same for websocket as well.
@astro Does this commit https://github.com/dhruvbird/node-xmpp-bosh/commit/7b7ccfe27aec1b8f4255d1c51ada7fd5af4431de solve your problem? I haven't been able to test with a client that doesn't close the stream:stream tag since I am testing using superfeedr's strophejs mod.
Awesome response time. I will give a try!
It now accepts a non-closed <stream:stream>
from my client. In response to that however node-xmpp-bosh itself sends:
<stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xml:lang="en" from="example.com"/>
Let me know if current head works now.
Perfect! Thank you very much.
node-xmpp-bosh parses and sends only
<stream:stream>
elements that are closed.Jack Moffitt's draft however specifies:
You may need to apply some weird string magic if you insist on DOM parsing.