Skip to content

Commit

Permalink
Update note about Sanic issues (Fixes #1365)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jul 19, 2024
1 parent f16a998 commit 287d6ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions docs/server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -969,9 +969,8 @@ Sanic
~~~~~

.. note::
Due to some backward incompatible changes introduced in recent versions of
Sanic, it is currently recommended that a Sanic application is deployed with
the ASGI integration.
The Sanic integration has not been updated in a long time. It is currently
recommended that a Sanic application is deployed with the ASGI integration.

.. _using-a-message-queue:

Expand Down
2 changes: 1 addition & 1 deletion examples/server/sanic/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import socketio

sio = socketio.AsyncServer(async_mode='sanic')
app = Sanic(name='sanic_application')
app = Sanic(__name__)
sio.attach(app)


Expand Down
2 changes: 1 addition & 1 deletion examples/server/sanic/fiddle.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import socketio

sio = socketio.AsyncServer(async_mode='sanic')
app = Sanic()
app = Sanic(__name__)
sio.attach(app)


Expand Down
2 changes: 1 addition & 1 deletion examples/server/sanic/latency.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import socketio

sio = socketio.AsyncServer(async_mode='sanic')
app = Sanic()
app = Sanic(__name__)
sio.attach(app)


Expand Down

0 comments on commit 287d6ed

Please sign in to comment.