Skip to content

Commit 287d6ed

Browse files
Update note about Sanic issues (Fixes miguelgrinberg#1365)
1 parent f16a998 commit 287d6ed

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

docs/server.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -969,9 +969,8 @@ Sanic
969969
~~~~~
970970

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

976975
.. _using-a-message-queue:
977976

examples/server/sanic/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import socketio
55

66
sio = socketio.AsyncServer(async_mode='sanic')
7-
app = Sanic(name='sanic_application')
7+
app = Sanic(__name__)
88
sio.attach(app)
99

1010

examples/server/sanic/fiddle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import socketio
55

66
sio = socketio.AsyncServer(async_mode='sanic')
7-
app = Sanic()
7+
app = Sanic(__name__)
88
sio.attach(app)
99

1010

examples/server/sanic/latency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import socketio
55

66
sio = socketio.AsyncServer(async_mode='sanic')
7-
app = Sanic()
7+
app = Sanic(__name__)
88
sio.attach(app)
99

1010

0 commit comments

Comments
 (0)