Commit ddfe6217 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Client: Add resumeable property

Returns True if the stream is resumeable via stream management
parent b3010f91
Pipeline #9208 failed with stages
in 34 seconds
......@@ -149,6 +149,10 @@ class Client(Observable):
def features(self):
return self._stream_features
@property
def resumeable(self):
return self._smacks.resumeable
@property
def sm_supported(self):
return self._smacks.sm_supported
......
......@@ -73,6 +73,10 @@ class Smacks:
self._log.info('Server supports detected: %s', value)
self._sm_supported = value
@property
def resumeable(self):
return self._session_id is not None and self.resume_supported
def delegate(self, stanza):
if stanza.getNamespace() != Namespace.STREAM_MGMT:
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment