File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 5
5
if sys .version_info >= (3 , 5 ): # pragma: no cover
6
6
from .asyncio_server import AsyncServer
7
7
from .async_tornado import get_tornado_handler
8
+ from .async_asgi import create_asgi_app
8
9
else : # pragma: no cover
9
10
AsyncServer = None
10
11
11
12
__version__ = '2.3.2'
12
13
13
14
__all__ = ['__version__' , 'Middleware' , 'Server' ]
14
15
if AsyncServer is not None : # pragma: no cover
15
- __all__ += ['AsyncServer' , 'get_tornado_handler' ]
16
+ __all__ += ['AsyncServer' , 'get_tornado_handler' , 'create_asgi_app' ]
Original file line number Diff line number Diff line change 2
2
import uvicorn
3
3
4
4
import engineio
5
- from engineio .async_asgi import create_asgi_app
6
5
7
6
eio = engineio .AsyncServer (async_mode = 'asgi' )
8
- app = create_asgi_app (eio , static_files = {
7
+ app = engineio . create_asgi_app (eio , static_files = {
9
8
'/' : {'content_type' : 'text/html' , 'filename' : 'latency.html' },
10
9
'/static/engine.io.js' : {'content_type' : 'application/javascript' ,
11
10
'filename' : 'static/engine.io.js' },
Original file line number Diff line number Diff line change 2
2
import uvicorn
3
3
4
4
import engineio
5
- from engineio .async_asgi import create_asgi_app
6
5
7
6
eio = engineio .AsyncServer (async_mode = 'asgi' )
8
- app = create_asgi_app (eio , static_files = {
7
+ app = engineio . create_asgi_app (eio , static_files = {
9
8
'/' : {'content_type' : 'text/html' , 'filename' : 'simple.html' },
10
9
'/static/engine.io.js' : {'content_type' : 'application/javascript' ,
11
10
'filename' : 'static/engine.io.js' }
You can’t perform that action at this time.
0 commit comments