
    wg7                     L    d dl Z  G d de j                        Z G d de      Zy)    Nc                   (     e Zd ZdZ	 	 d fd	Z xZS )WSGIAppa  WSGI middleware for Socket.IO.

    This middleware dispatches traffic to a Socket.IO application. It can also
    serve a list of static files to the client, or forward unrelated HTTP
    traffic to another WSGI application.

    :param socketio_app: The Socket.IO server. Must be an instance of the
                         ``socketio.Server`` class.
    :param wsgi_app: The WSGI app that receives all other traffic.
    :param static_files: A dictionary with static file mapping rules. See the
                         documentation for details on this argument.
    :param socketio_path: The endpoint where the Socket.IO application should
                          be installed. The default value is appropriate for
                          most cases.

    Example usage::

        import socketio
        import eventlet
        from . import wsgi_app

        sio = socketio.Server()
        app = socketio.WSGIApp(sio, wsgi_app)
        eventlet.wsgi.server(eventlet.listen(('', 8000)), app)
    c                 ,    t         |   ||||       y )N)static_filesengineio_pathsuper__init__)selfsocketio_appwsgi_appr   socketio_path	__class__s        X/home/mcse/projects/flask/flask-venv/lib/python3.12/site-packages/socketio/middleware.pyr
   zWSGIApp.__init__   s    xl'4 	 	6    )NN	socket.io__name__
__module____qualname____doc__r
   __classcell__r   s   @r   r   r      s    2 BF*6 6r   r   c                   (     e Zd ZdZ	 	 d fd	Z xZS )
Middlewarez=This class has been renamed to WSGIApp and is now deprecated.c                 *    t         |   |||       y )N)r   r   )r   r   r   r   r   s       r   r
   zMiddleware.__init__&   s    x}Mr   )Nr   r   r   s   @r   r   r   $   s    G.2*N Nr   r   )engineior   r    r   r   <module>r      s)    6h 6@N Nr   