aboutsummaryrefslogtreecommitdiffstats
path: root/python-twisted/examples/subscribe-example.py
diff options
context:
space:
mode:
authorDevendra2013-02-25 21:58:57 +0530
committerDevendra2013-02-25 21:58:57 +0530
commit2238067fbbe3fa6154150095f8a3b4b317a7c7dd (patch)
treec833872dc41a06b64ac173911763e091a7ced6f8 /python-twisted/examples/subscribe-example.py
parent2ea3826d516fdf10a889e98ffab04a8f1d790650 (diff)
downloadpubnub-python-2238067fbbe3fa6154150095f8a3b4b317a7c7dd.tar.bz2
refactoring
Diffstat (limited to 'python-twisted/examples/subscribe-example.py')
-rw-r--r--python-twisted/examples/subscribe-example.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/python-twisted/examples/subscribe-example.py b/python-twisted/examples/subscribe-example.py
index 994e7e3..cf4a919 100644
--- a/python-twisted/examples/subscribe-example.py
+++ b/python-twisted/examples/subscribe-example.py
@@ -23,7 +23,8 @@ ssl_on = len(sys.argv) > 5 and bool(sys.argv[5]) or False
## -----------------------------------------------------------------------
## Initiate Pubnub State
## -----------------------------------------------------------------------
-pubnub = Pubnub( publish_key, subscribe_key, secret_key, cipher_key, ssl_on )
+#pubnub = Pubnub( publish_key, subscribe_key, secret_key, cipher_key, ssl_on )
+pubnub = Pubnub( publish_key, subscribe_key, secret_key, ssl_on )
crazy = 'hello_world'
## -----------------------------------------------------------------------
@@ -33,10 +34,7 @@ def message_received(message):
print(message)
def connected() :
- pubnub.publish({
- 'channel' : crazy,
- 'message' : { 'Info' : 'Connected!' }
- })
+ print 'Connected'
pubnub.subscribe({
'channel' : crazy,