Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PNarode committed Mar 26, 2020
1 parent 8ce84ce commit 909135e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions c8/fabric.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ def on_change(self, collection, callback=printdata):
subscription_name = "%s-%s-subscription-%s" % (
self.tenant_name, self.fabric_name, str(random.randint(1, 1000)))

url = self.url.split("//")[1].split(":")[0]

topic = "wss://{}/_ws/ws/v2/consumer/persistent/{}/{}/{}/{}".format(
self.url+":"+str(self.stream_port),self.tenant_name,namespace,
url,self.tenant_name,namespace,
collection,subscription_name)

print(topic)

ws = websocket.create_connection(topic)

try:
Expand Down

0 comments on commit 909135e

Please sign in to comment.