Skip to content

Commit

Permalink
move to the new WSGIApp class in python-socketio
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Nov 26, 2018
1 parent 7463d34 commit db74fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_socketio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
__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.
"""
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()
Expand Down

0 comments on commit db74fa3

Please sign in to comment.