diff --git a/socketio/asyncio_server.py b/socketio/asyncio_server.py index 2188f22..8ca6cda 100644 --- a/socketio/asyncio_server.py +++ b/socketio/asyncio_server.py @@ -73,6 +73,9 @@ class AsyncServer(server.Server): """Attach the Socket.IO server to an application.""" self.eio.attach(app, socketio_path) + async def shutdown(self): + return await self.eio.shutdown() + async def emit(self, event, data=None, room=None, skip_sid=None, namespace=None, callback=None, **kwargs): """Emit a custom event to one or more connected clients.