Skip to content

Commit 16a2471

Browse files
authored
fix/wss_connection
1 parent c0996b1 commit 16a2471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hivemind_bus_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ def __init__(self, key: Optional[str] = None,
114114

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

0 commit comments

Comments
 (0)