Add lang attribute to initial xml
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">'
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
Thanks for reply. Look forward to work on this issue then.