aioxmpp icon indicating copy to clipboard operation
aioxmpp copied to clipboard

Add lang attribute to initial xml

Open ilyatrefilov opened this issue 6 years ago • 2 comments

I have the following code send_client = aioxmpp.PresenceManagedClient(jid=client.jid, security_layer=aioxmpp.make_security_layer(client.password, no_verify=True), override_peer= [(settings.SERVER_HOST, 443, aioxmpp.connector.XMPPOverTLSConnector())]) async with send_client.connected() as stream: ...

The question is: How to add lang attribute on initial xml? Now this code produces the following xml: b'<stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" to="some-host">'

ilyatrefilov avatar Feb 15 '19 12:02 ilyatrefilov

Currently, we don’t support that.

To do this, one would start with:

  • Implement it in XMLStreamWriter
  • Make it possible to pass it to the writer via XMLStream
  • Make it possible to pass it to the XML stream from the Client

horazont avatar Feb 15 '19 15:02 horazont

Thanks for reply. Look forward to work on this issue then.

ilyatrefilov avatar Feb 15 '19 16:02 ilyatrefilov