aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/pubnub-console
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/pubnub-console')
-rw-r--r--python/examples/pubnub-console/pubnub-console8
1 files changed, 3 insertions, 5 deletions
diff --git a/python/examples/pubnub-console/pubnub-console b/python/examples/pubnub-console/pubnub-console
index 058253f..dfd59f5 100644
--- a/python/examples/pubnub-console/pubnub-console
+++ b/python/examples/pubnub-console/pubnub-console
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
## www.pubnub.com - PubNub Real-time push service in the cloud.
# coding=utf8
@@ -221,13 +219,13 @@ def _subscribe_command_handler(channel):
print_error(r, ch if ch is not None else channel)
def _disconnect(r):
- print_error("DISCONNECTED", r)
+ print_ok("DISCONNECTED", r)
def _reconnect(r):
- print_error("RECONNECTED", r)
+ print_ok("RECONNECTED", r)
def _connect(r):
- print_error("CONNECTED", r)
+ print_ok("CONNECTED", r)
pubnub.subscribe(channel, _callback, _error, connect=_connect,
disconnect=_disconnect, reconnect=_reconnect)