@@ -8,9 +8,6 @@ from _typeshed import Incomplete
8
8
from aiohttp .web import Application as AiohttpApplication
9
9
from engineio .async_drivers .asgi import ASGIApp as EngineIOASGIApp
10
10
from 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
14
11
from socketio ._types import (
15
12
AsyncAsyncModeType ,
16
13
AsyncSessionContextManager ,
@@ -21,6 +18,7 @@ from socketio._types import (
21
18
from socketio .asgi import ASGIApp as SocketIOASGIApp
22
19
from socketio .async_admin import InstrumentedAsyncServer
23
20
from socketio .async_manager import AsyncManager
21
+ from socketio .base_server import BaseServer
24
22
from tornado .web import Application as TornadoApplication
25
23
from typing_extensions import TypeVar
26
24
@@ -30,15 +28,15 @@ _T = TypeVar("_T")
30
28
31
29
task_reference_holder : set [Any ]
32
30
33
- class AsyncServer (
34
- base_server .BaseServer [Literal [True ], engineio .AsyncServer ], Generic [_A ]
35
- ):
31
+ class AsyncServer (BaseServer [Literal [True ], engineio .AsyncServer ], Generic [_A ]):
36
32
def __init__ (
37
33
self ,
38
34
client_manager : AsyncManager | None = ...,
39
35
logger : logging .Logger | bool = ...,
36
+ serializer : str = ...,
40
37
json : Incomplete | None = ...,
41
38
async_handlers : bool = ...,
39
+ always_connect : bool = ...,
42
40
namespaces : list [str ] | None = ...,
43
41
* ,
44
42
async_mode : _A = ...,
0 commit comments