diff options
Diffstat (limited to 'python-tornado/examples/publish.py')
| -rw-r--r-- | python-tornado/examples/publish.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python-tornado/examples/publish.py b/python-tornado/examples/publish.py index 4e662fd..04e88fd 100644 --- a/python-tornado/examples/publish.py +++ b/python-tornado/examples/publish.py @@ -20,11 +20,12 @@ ssl_on = len(sys.argv) > 5 and bool(sys.argv[5]) or False ## ----------------------------------------------------------------------- pubnub = Pubnub(publish_key=publish_key, subscribe_key=subscribe_key, secret_key=secret_key, cipher_key=cipher_key, ssl_on=ssl_on) -channel = 'hello_world' -message = 'Hello World !!!' +channel = 'hello_world' +message = 'Hello World !!!' # Asynchronous usage + def callback(message): print(message) |
