Skip to content

Commit

Permalink
Merge pull request #358 from ably/fix-realtime-host
Browse files Browse the repository at this point in the history
fix realtime host url
  • Loading branch information
mohyour authored Nov 7, 2022
2 parents c120c79 + 22739ec commit 8e60909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ably/realtime/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ async def send_protocol_message(self, protocolMessage):

async def setup_ws(self):
headers = HttpUtils.default_headers()
ws_url = f'wss://{self.options.realtime_host}?key={self.__ably.key}'
ws_url = f'wss://{self.options.get_realtime_host()}?key={self.__ably.key}'
log.info(f'setup_ws(): attempting to connect to {ws_url}')
async with websockets.connect(ws_url, extra_headers=headers) as websocket:
log.info(f'setup_ws(): connection established to {ws_url}')
Expand Down

0 comments on commit 8e60909

Please sign in to comment.