mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Updated echo_client example to mention SSL options.
This commit is contained in:
parent
874c51d74d
commit
cbc42c29fb
1 changed files with 7 additions and 0 deletions
|
@ -118,6 +118,13 @@ if __name__ == '__main__':
|
||||||
xmpp.registerPlugin('xep_0060') # PubSub
|
xmpp.registerPlugin('xep_0060') # PubSub
|
||||||
xmpp.registerPlugin('xep_0199') # XMPP Ping
|
xmpp.registerPlugin('xep_0199') # XMPP Ping
|
||||||
|
|
||||||
|
# If you are working with an OpenFire server, you may need
|
||||||
|
# to adjust the SSL version used:
|
||||||
|
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
||||||
|
|
||||||
|
# If you want to verify the SSL certificates offered by a server:
|
||||||
|
# xmpp.ca_certs = "path/to/ca/cert"
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
if xmpp.connect():
|
if xmpp.connect():
|
||||||
# If you do not have the pydns library installed, you will need
|
# If you do not have the pydns library installed, you will need
|
||||||
|
|
Loading…
Reference in a new issue