Decided on using MatriX XMPP SDK in stead of S22.XMPP
The examples in MatriX documentation were better/easier than for S22.XMPP.