aboutsummaryrefslogtreecommitdiffstats
path: root/common/PubnubCoreAsync.py
diff options
context:
space:
mode:
authorDevendra2013-07-10 10:39:58 +0530
committerDevendra2013-07-10 10:39:58 +0530
commite65cc45e333cc33d19b97b5f93e69121ca2beffa (patch)
tree284435394f510ab1cd165fdac9b7bded5709dc83 /common/PubnubCoreAsync.py
parentdd2e5481c7b0f96d8caae5a613db0c407711999d (diff)
downloadpubnub-python-e65cc45e333cc33d19b97b5f93e69121ca2beffa.tar.bz2
adding makefiles for version updates
Diffstat (limited to 'common/PubnubCoreAsync.py')
-rw-r--r--common/PubnubCoreAsync.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/PubnubCoreAsync.py b/common/PubnubCoreAsync.py
index 9dcad4b..5b8d130 100644
--- a/common/PubnubCoreAsync.py
+++ b/common/PubnubCoreAsync.py
@@ -188,3 +188,12 @@ class PubnubCoreAsync(PubnubBase):
## BEGIN SUBSCRIPTION (LISTEN FOR MESSAGES)
_subscribe()
+ def unsubscribe( self, args ):
+ channel = str(args['channel'])
+ if not (channel in self.subscriptions):
+ return False
+
+ ## DISCONNECT
+ self.subscriptions[channel]['connected'] = 0
+ self.subscriptions[channel]['timetoken'] = 0
+ self.subscriptions[channel]['first'] = False