Someone got compression for working with ASmack

I am using asmack xmpp client in an Android application that I am working on and would like to use compression. Ive found setCompressionEnabled, but when I try, it will tell me that I need smackx.

ConnectionConfiguration config = new ConnectionConfiguration("ip", 5222, "service");
config.setCompressionEnabled(true);
xmpp = new XMPPConnection(config);

After some research on the source, it seems that it only needs compression classes from smackx.jar. Even after you took all the necessary classes in the bank and built them in my project, it does not seem to send or receive data. I do not get an error at any time.

I was wondering if anyone has a job, or if I start combing through asmack source.

+3
source share

Source: https://habr.com/ru/post/1794880/


All Articles