Skip to content

Commit

Permalink
Option to disable routing in ASGIApp
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Feb 9, 2024
1 parent e8bab71 commit 7cc84bd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/socketio/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ class ASGIApp(engineio.ASGIApp): # pragma: no cover
:param other_asgi_app: A separate ASGI app that receives all other traffic.
:param socketio_path: The endpoint where the Socket.IO application should
be installed. The default value is appropriate for
most cases.
most cases. With a value of ``None``, all incoming
traffic is directed to the Socket.IO server, with the
assumption that routing, if necessary, is handled by
a different layer. When this option is set to
``None``, ``static_files`` and ``other_asgi_app`` are
ignored.
:param on_startup: function to be called on application startup; can be
coroutine
:param on_shutdown: function to be called on application shutdown; can be
Expand All @@ -27,7 +32,7 @@ class ASGIApp(engineio.ASGIApp): # pragma: no cover
import uvicorn
sio = socketio.AsyncServer()
app = engineio.ASGIApp(sio, static_files={
app = socketio.ASGIApp(sio, static_files={
'/': 'index.html',
'/static': './public',
})
Expand Down

0 comments on commit 7cc84bd

Please sign in to comment.