Browse Source
ambiguous
Ambiguous between `wsgi` app and socket `server` instance `app`
pull/1108/head
Sabbir Sobhani
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
docs/server.rst
|
|
@ -53,8 +53,8 @@ These two wrappers can also act as middlewares, forwarding any traffic that is |
|
|
|
not intended to the Socket.IO server to another application. This allows |
|
|
|
Socket.IO servers to integrate easily into existing WSGI or ASGI applications:: |
|
|
|
|
|
|
|
from wsgi import app # a Flask, Django, etc. application |
|
|
|
app = socketio.WSGIApp(sio, app) |
|
|
|
from wsgi import wsgi_app # a Flask, Django, etc. application |
|
|
|
app = socketio.WSGIApp(sio, wsgi_app) |
|
|
|
|
|
|
|
Serving Static Files |
|
|
|
-------------------- |
|
|
|