File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1111from .middleware import WSGIApp , Middleware
1212from .tornado import get_tornado_handler
1313if sys .version_info >= (3 , 5 ): # pragma: no cover
14- # from .asyncio_client import AsyncClient
1514 from .asyncio_client import AsyncClient
1615 from .asyncio_server import AsyncServer
1716 from .asyncio_manager import AsyncManager
1817 from .asyncio_namespace import AsyncNamespace , AsyncClientNamespace
1918 from .asyncio_redis_manager import AsyncRedisManager
2019 from .asgi import ASGIApp
2120else : # pragma: no cover
21+ AsyncClient = None
2222 AsyncServer = None
2323 AsyncManager = None
2424 AsyncNamespace = None
Original file line number Diff line number Diff line change 1313
1414
1515class AsyncClient (client .Client ):
16- """An Socket.IO client for asyncio.
16+ """A Socket.IO client for asyncio.
1717
18- This class implements a fully compliant Engine .IO web client with support
18+ This class implements a fully compliant Socket .IO web client with support
1919 for websocket and long-polling transports.
2020
2121 :param reconnection: ``True`` if the client should automatically attempt to
@@ -110,6 +110,7 @@ async def wait(self):
110110 """
111111 while True :
112112 await self .eio .wait ()
113+ await self .sleep (1 ) # give the reconnect task time to start up
113114 if not self ._reconnect_task :
114115 break
115116 await self ._reconnect_task
Original file line number Diff line number Diff line change 1313
1414
1515class Client (object ):
16- """An Socket.IO client.
16+ """A Socket.IO client.
1717
18- This class implements a fully compliant Engine .IO web client with support
18+ This class implements a fully compliant Socket .IO web client with support
1919 for websocket and long-polling transports.
2020
2121 :param reconnection: ``True`` if the client should automatically attempt to
@@ -214,6 +214,7 @@ def wait(self):
214214 """
215215 while True :
216216 self .eio .wait ()
217+ self .sleep (1 ) # give the reconnect task time to start up
217218 if not self ._reconnect_task :
218219 break
219220 self ._reconnect_task .join ()
You can’t perform that action at this time.
0 commit comments