Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-09-05 23:07:53 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-09-05 23:07:53 +0300
commit40520af11ae80d17f12f74c0abe497205ce8b207 (patch)
treee05395b4e388df75b41b8f4d40b4ae0e6781d34c /nbxmpp/client.py
parent63d72fbdefa46f00951f7154a236a3c600ad9f07 (diff)
Add public method to access the openssl connection object
Diffstat (limited to 'nbxmpp/client.py')
-rw-r--r--nbxmpp/client.py4
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