mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 10:19:41 +02:00
Enables the HTTP compression in JBOSH
Adds an extra parameter "compressionEnabled" to ConnectionConfiguration that is used to set the setCompressionEnabled() of BOSHClientConfig
This commit is contained in:
parent
b7ea226c56
commit
1ea10831b6
3 changed files with 23 additions and 32 deletions
|
@ -157,6 +157,8 @@ public class XMPPBOSHConnection extends AbstractXMPPConnection {
|
|||
if (config.isProxyEnabled()) {
|
||||
cfgBuilder.setProxy(config.getProxyAddress(), config.getProxyPort());
|
||||
}
|
||||
cfgBuilder.setCompressionEnabled(config.isCompressionEnabled());
|
||||
|
||||
client = BOSHClient.create(cfgBuilder.build());
|
||||
|
||||
client.addBOSHClientConnListener(new BOSHConnectionListener());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue