diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-09-05 23:07:53 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-09-05 23:07:53 +0300 |
commit | 40520af11ae80d17f12f74c0abe497205ce8b207 (patch) | |
tree | e05395b4e388df75b41b8f4d40b4ae0e6781d34c /nbxmpp/client.py | |
parent | 63d72fbdefa46f00951f7154a236a3c600ad9f07 (diff) |
Add public method to access the openssl connection object
Diffstat (limited to 'nbxmpp/client.py')
-rw-r--r-- | nbxmpp/client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nbxmpp/client.py b/nbxmpp/client.py index 87c4527..d01af4e 100644 --- a/nbxmpp/client.py +++ b/nbxmpp/client.py @@ -119,6 +119,10 @@ class NonBlockingClient: def get_bound_jid(self): return self._registered_name + def get_ssl_connection(self): + if 'NonBlockingTCP' in self.__dict__: + return self.NonBlockingTCP.get_ssl_connection() + def disconnect(self, message=''): """ Called on disconnection - disconnect callback is picked based on state of |