From 72d37ea79f4cf6076591782e4781fd4868a7e0d6 Mon Sep 17 00:00:00 2001 From: Peter Bierma Date: Sat, 9 Nov 2024 18:40:38 -0500 Subject: [PATCH] Fix typo with `AsyncClient.connect` example (#1403) --- src/socketio/async_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socketio/async_client.py b/src/socketio/async_client.py index 5fd8daaf..e79fce0e 100644 --- a/src/socketio/async_client.py +++ b/src/socketio/async_client.py @@ -116,7 +116,7 @@ async def connect(self, url, headers={}, auth=None, transports=None, Example usage:: sio = socketio.AsyncClient() - sio.connect('http://localhost:5000') + await sio.connect('http://localhost:5000') """ if self.connected: raise exceptions.ConnectionError('Already connected')