diff options
Diffstat (limited to 'python-twisted/examples/subscribe-example.py')
| -rw-r--r-- | python-twisted/examples/subscribe-example.py | 8 |
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, |
