Skip to content

Commit

Permalink
fix: no auto connect
Browse files Browse the repository at this point in the history
update README and make http client work the same as websocket  (no auto connect)
  • Loading branch information
JarbasAl committed Jan 8, 2025
1 parent 22f5c61 commit da86f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hivemind_bus_client/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ def connect(self, bus=FakeBus(), protocol=None, site_id=None):
self.protocol.bind(bus)
url = f"{self.base_url}/connect"
response = requests.post(url, params={"authorization": self.auth})
self.connected.set()
self.wait_for_handshake()
self.connected.set()
return response.json()

def disconnect(self) -> dict:
Expand Down

0 comments on commit da86f36

Please sign in to comment.