Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
daddyboo #1
Member since Aug 2011 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: xmlns="jabber:client" in all packets
Why there is present xmlns="jabber:client" in all packets?
In other clients i dont see the same.

Server: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
Client: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="ya.ru" version="1.0" >
Server: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" id="2863038662" from="ya.ru" version="1.0" lang="en" >
Server: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
  <compression xmlns="http://jabber.org/features/compress">
    <method>zlib</method>
  </compression>
  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
  <ver xmlns="urn:xmpp:features:rosterver" />
</stream:features>
Client: <compress xmlns="http://jabber.org/protocol/compress">
  <method>zlib</method>
</compress>
Server: <compressed xmlns="http://jabber.org/protocol/compress" />
Client: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="ya.ru" version="1.0" >
Server: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" id="4004107281" from="ya.ru" version="1.0" lang="en" >
Server: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
  <ver xmlns="urn:xmpp:features:rosterver" />
</stream:features>
Client: <iq id="MX_1" type="set" xmlns="jabber:client">
  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
    <resource>Jabber</resource>
  </bind>
</iq>
Server: <iq id="MX_1" type="result" xmlns="jabber:client">
  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
    <jid>qazzzar@ya.ru/Jabber</jid>
  </bind>
</iq>
Client: <iq id="MX_2" type="set" xmlns="jabber:client">
  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</iq>
Server: <iq type="result" id="MX_2" xmlns="jabber:client">
  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</iq>
Client: <iq id="MX_3" type="get" xmlns="jabber:client">
  <query xmlns="jabber:iq:roster" />
</iq>
Server: <iq from="ya.ru" to="qazzzar@ya.ru/Jabber" id="ask_version" type="get" xmlns="jabber:client">
  <query xmlns="jabber:iq:version" />
</iq>
Server: <iq from="ya.ru" to="qazzzar@ya.ru/Jabber" id="ping_0" type="get" xmlns="jabber:client">
  <ping xmlns="urn:xmpp:ping" />
</iq>
Client: <iq to="ya.ru" id="ping_0" type="result" xmlns="jabber:client" />
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This is by design. In the debug the elements are a single document without a reference to the complete stream. This is why this namespace declaration is present. But Matrix does send the packets without this additional namespace declaration over the wire.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS