Skip to content

Commit

Permalink
fix/wss_connection (#28)
Browse files Browse the repository at this point in the history
* fix/wss_connection

* Update client.py
  • Loading branch information
JarbasAl authored Jun 12, 2024
1 parent c0996b1 commit 0e85b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hivemind_bus_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def __init__(self, key: Optional[str] = None,

# NOTE: self._host and self._port accessed only after self.init_identity()
# this allows them to come from set-identity cli command
use_ssl = self._host.startswith("wss://")
host = self._host.replace("ws://", "").replace("wss://", "").strip()
use_ssl = host.startswith("wss://")
super().__init__(host=host, port=self._port, ssl=use_ssl,
emitter=EventEmitter(), session=sess)

Expand Down

0 comments on commit 0e85b4f

Please sign in to comment.