StanzaJS Discussion - 2020-05-04


  1. marc0s hi there
  2. marc0s just a small question about the protocol. I was reading both RFC6120 and RFC7395 for the WS part and while looking at the stanzas received at my prosody instance, I see that stanza is sending `<stream:stream>` for opening the stream (actually: `<stream:stream to='example.com' xml:lang='en' version='1.0' xmlns:stream='http://etherx.jabber.org/streams'>`) instead of an `<open xmlns="urn:ietf:params:xml:ns:xmpp-framing" to="example.com" version="1.0" />` as expected per the RFC. At least to my understanding. Am I missing something?
  3. Lance wait, really
  4. Lance double checks on things
  5. Lance which version of stanza are you using?
  6. Lance there used to be a mode that did that. some servers pre-RFC used websockets that way
  7. Lance and prosody basically translates open/close back into the 6120 stream elements before processing them
  8. Lance https://hg.prosody.im/trunk/file/tip/plugins/mod_websocket.lua#l117
  9. Lance so im not sure at what point things get logged, but that could be why if you're looking at prosody logs