Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable XEP-0198 support #595

Merged
merged 2 commits into from Jan 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 13 additions & 12 deletions README.rst
Expand Up @@ -23,24 +23,25 @@ Supported protocols
* RFC-3920: Core
* RFC-3921: Instant Messaging and Presence
* XEP-0030: Service Discovery
* XEP-0128: Service Discovery Extensions
* XEP-0115: Entity Capabilities
* XEP-0054: vcard-temp
* XEP-0153: vCard-Based Avatars
* XEP-0045: Multi-User Chat (incompletely)
* XEP-0054: vcard-temp
* XEP-0059: Result Set Management
* XEP-0077: In-Band Registration
* XEP-0078: Non-SASL Authentication
* XEP-0138: Stream Compression
* XEP-0203: Delayed Delivery
* XEP-0085: Chat State Notifications
* XEP-0091: Legacy Delayed Delivery
* XEP-0199: XMPP Ping
* XEP-0115: Entity Capabilities
* XEP-0128: Service Discovery Extensions
* XEP-0136: Message Archiving
* XEP-0138: Stream Compression
* XEP-0147: XMPP URI Scheme Query Components
* XEP-0085: Chat State Notifications
* XEP-0184: Message Delivery Receipts
* XEP-0153: vCard-Based Avatars
* XEP-0155: Stanza Session Negotiation
* XEP-0059: Result Set Management
* XEP-0136: Message Archiving
* XEP-0184: Message Delivery Receipts
* XEP-0198: Stream Management
* XEP-0199: XMPP Ping
* XEP-0203: Delayed Delivery
* XEP-0224: Attention
* XEP-0077: In-Band Registration
* XEP-0352: Client State Indication

Translations
Expand Down
Expand Up @@ -86,7 +86,7 @@ public class ConnectionThread implements
/**
* SMACK connection.
*/
private AbstractXMPPConnection xmppConnection;
private XMPPTCPConnection xmppConnection;

/**
* Thread holder for this connection.
Expand Down Expand Up @@ -213,6 +213,10 @@ private void onReady(XMPPTCPConnectionConfiguration.Builder builder) {
xmppConnection.addAsyncStanzaListener(this, ACCEPT_ALL);
xmppConnection.addConnectionListener(this);

// enable Stream Management support. SMACK will only enable SM if supported by the server,
// so no additional checks are required.
xmppConnection.setUseStreamManagement(true);

// by default Smack disconnects in case of parsing errors
xmppConnection.setParsingExceptionCallback(new ExceptionLoggingCallback());

Expand Down