Skip to content

Commit 87edd73

Browse files
committed
fix: no auto connect
update README and make http client work the same as websocket (no auto connect)
1 parent da86f36 commit 87edd73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hivemind_bus_client/http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ def connect(self, bus=FakeBus(), protocol=None, site_id=None):
358358
self.protocol.bind(bus)
359359
url = f"{self.base_url}/connect"
360360
response = requests.post(url, params={"authorization": self.auth})
361-
self.wait_for_handshake()
362361
self.connected.set()
362+
self.wait_for_handshake()
363363
return response.json()
364364

365365
def disconnect(self) -> dict:

0 commit comments

Comments
 (0)