# for standard WSGI applications sio = socketio.Server() app = socketio.WSGIApp(sio, static_files=static_files) # for asyncio-based ASGI applications sio = socketio.AsyncServer() app = socketio.ASGIApp(sio, static_files=static_files)