Skip to content

Commit

Permalink
Fix to allow connecting via https.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Feb 8, 2022
1 parent 1651c8a commit 6294971
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wavelink/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ async def connect(self) -> None:
code=1006, message=b"WaveLink: Attempting reconnection."
)

host = self.host if self.node._https else self.ws_host

try:
self.websocket = await self.session.ws_connect(
self.ws_host, headers=self.headers, heartbeat=self.node._heartbeat
host, headers=self.headers, heartbeat=self.node._heartbeat
)
except Exception as error:
if (
Expand Down

0 comments on commit 6294971

Please sign in to comment.