From db74fa385e9f508fff25029f2a3bfd1b86916960 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Mon, 26 Nov 2018 09:46:08 +0000 Subject: [PATCH] move to the new WSGIApp class in python-socketio --- flask_socketio/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_socketio/__init__.py b/flask_socketio/__init__.py index cb27b88f..52036553 100644 --- a/flask_socketio/__init__.py +++ b/flask_socketio/__init__.py @@ -26,7 +26,7 @@ __version__ = '3.0.2' -class _SocketIOMiddleware(socketio.Middleware): +class _SocketIOMiddleware(socketio.WSGIApp): """This WSGI middleware simply exposes the Flask application in the WSGI environment before executing the request. """ @@ -34,7 +34,7 @@ def __init__(self, socketio_app, flask_app, socketio_path='socket.io'): self.flask_app = flask_app super(_SocketIOMiddleware, self).__init__(socketio_app, flask_app.wsgi_app, - socketio_path) + socketio_path=socketio_path) def __call__(self, environ, start_response): environ = environ.copy()