Skip a Session Establishment request in Smack

I found one thing which we can actually omit:

If your server is new enough (so implements RFC 6121 correctly), you can skip a roundtrip by skipping the urn:ietf:params:xml:ns:xmpp-session IQ.
See https://datatracker.ietf.org/doc/draft-cridland-xmpp-session/?include_text=1.

The Extensible Messaging and Presence Protocol (XMPP) historically had a Session Establishment request defined in RFC 3921 which clients were required to perform at the beginning of a session. RFC 6121 dropped this entirely. This specification reinstates it as an optional no-op to aid backwards compability, matching commonly deployed workarounds.

and this is also mentioned here https://tools.ietf.org/html/rfc6121#page-112

Can we skip this step with Smack?

It’s already done:

[SMACK-622] Add support for ‘optional’ in session stream features - Jive Software Open Source

This is not exactly what I’m looking for.
Some XMPP servers may not use that ‘optional’ element, they just work without this session establishment request.

So I need a way to not to send intentionally it from Smack,

something like ‘skipStartSession’ flag in XMPPFramework https://github.com/robbiehanson/XMPPFramework/blob/master/Core/XMPPStream.h#L250

I’m opposed to introduce such a functionality to Smack. If the servers already do not require session establishing, then it’s usually trivial to modify the server code to add .