aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/publish.py
diff options
context:
space:
mode:
authorDevendra2015-06-19 00:52:43 +0530
committerDevendra2015-06-19 00:52:43 +0530
commit74953cb311e46636f9ce4903e41acac9bfc7f6ba (patch)
treef56371901d681cc1704e7ffd901a404facaf13c3 /python/examples/publish.py
parent589a28dbf9495c3d2d904d3ffd46947278eb0a7b (diff)
parentdf1ed365a2f490b3823fa785818e30c2eecf7dbb (diff)
downloadpubnub-python-74953cb311e46636f9ce4903e41acac9bfc7f6ba.tar.bz2
merging develop
Diffstat (limited to 'python/examples/publish.py')
-rw-r--r--python/examples/publish.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/publish.py b/python/examples/publish.py
index 594e7c4..3bc5e8f 100644
--- a/python/examples/publish.py
+++ b/python/examples/publish.py
@@ -7,7 +7,7 @@
import sys
-from Pubnub import Pubnub
+from pubnub import Pubnub
publish_key = len(sys.argv) > 1 and sys.argv[1] or 'demo'
subscribe_key = len(sys.argv) > 2 and sys.argv[2] or 'demo'
@@ -19,7 +19,7 @@ ssl_on = len(sys.argv) > 5 and bool(sys.argv[5]) or False
## Initiate Pubnub State
## -----------------------------------------------------------------------
pubnub = Pubnub(publish_key=publish_key, subscribe_key=subscribe_key,
- secret_key=secret_key, cipher_key=cipher_key, ssl_on=ssl_on)
+ secret_key=secret_key, cipher_key=cipher_key, ssl_on=ssl_on, pooling=False)
channel = 'hello_world'
message = 'Hello World !!!'