aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/PubnubCore.py4
-rw-r--r--python/Pubnub.py4
-rwxr-xr-xpython/examples/subscribe-example.py1
3 files changed, 5 insertions, 4 deletions
diff --git a/common/PubnubCore.py b/common/PubnubCore.py
index 9f79dc8..9a4fcae 100644
--- a/common/PubnubCore.py
+++ b/common/PubnubCore.py
@@ -89,13 +89,13 @@ class PubnubCore(PubnubBase):
timetoken = 'timetoken' in args and args['timetoken'] or 0
try :
## Wait for Message
- response = self._request(self._encode([
+ response = self._request({"urlcomponents" : [
'subscribe',
subscribe_key,
channel,
'0',
str(timetoken)
- ])+['?uuid='+self.uuid], encode=False)
+ ],"urlparams" : {"uuid" : self.uuid }})
messages = response[0]
args['timetoken'] = response[1]
diff --git a/python/Pubnub.py b/python/Pubnub.py
index b1d1777..680e64c 100644
--- a/python/Pubnub.py
+++ b/python/Pubnub.py
@@ -578,13 +578,13 @@ class PubnubCore(PubnubBase):
timetoken = 'timetoken' in args and args['timetoken'] or 0
try :
## Wait for Message
- response = self._request(self._encode([
+ response = self._request({"urlcomponents" : [
'subscribe',
subscribe_key,
channel,
'0',
str(timetoken)
- ])+['?uuid='+self.uuid], encode=False)
+ ],"urlparams" : {"uuid" : self.uuid }})
messages = response[0]
args['timetoken'] = response[1]
diff --git a/python/examples/subscribe-example.py b/python/examples/subscribe-example.py
index e458e2b..14a43d9 100755
--- a/python/examples/subscribe-example.py
+++ b/python/examples/subscribe-example.py
@@ -1,4 +1,5 @@
import sys
+sys.path.append('../')
import threading
import time
import random