@@ -8,9 +8,6 @@ from _typeshed import Incomplete
88from aiohttp .web import Application as AiohttpApplication
99from engineio .async_drivers .asgi import ASGIApp as EngineIOASGIApp
1010from sanic import Sanic
11- from socketio import base_server as base_server
12- from socketio import exceptions as exceptions
13- from socketio import packet as packet
1411from socketio ._types import (
1512 AsyncAsyncModeType ,
1613 AsyncSessionContextManager ,
@@ -21,6 +18,7 @@ from socketio._types import (
2118from socketio .asgi import ASGIApp as SocketIOASGIApp
2219from socketio .async_admin import InstrumentedAsyncServer
2320from socketio .async_manager import AsyncManager
21+ from socketio .base_server import BaseServer
2422from tornado .web import Application as TornadoApplication
2523from typing_extensions import TypeVar
2624
@@ -30,15 +28,15 @@ _T = TypeVar("_T")
3028
3129task_reference_holder : set [Any ]
3230
33- class AsyncServer (
34- base_server .BaseServer [Literal [True ], engineio .AsyncServer ], Generic [_A ]
35- ):
31+ class AsyncServer (BaseServer [Literal [True ], engineio .AsyncServer ], Generic [_A ]):
3632 def __init__ (
3733 self ,
3834 client_manager : AsyncManager | None = ...,
3935 logger : logging .Logger | bool = ...,
36+ serializer : str = ...,
4037 json : Incomplete | None = ...,
4138 async_handlers : bool = ...,
39+ always_connect : bool = ...,
4240 namespaces : list [str ] | None = ...,
4341 * ,
4442 async_mode : _A = ...,
0 commit comments