
    i7                     P    d dl Z  G d de j                  Z G d de          ZdS )    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)
    N	socket.ioc                 R    t                                          ||||           d S )N)static_filesengineio_pathsuper__init__)selfsocketio_appwsgi_appr   socketio_path	__class__s        >/usr/local/lib/python3.11/dist-packages/socketio/middleware.pyr   zWSGIApp.__init__   s7    xl'4 	 	6 	6 	6 	6 	6    )NNr   __name__
__module____qualname____doc__r   __classcell__r   s   @r   r   r      sQ         2 BF*6 6 6 6 6 6 6 6 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.Nr   c                 P    t                                          |||           d S )N)r   r	   )r   r   r   r   r   s       r   r   zMiddleware.__init__&   s(    x}MMMMMr   )Nr   r   r   s   @r   r   r   $   sS        GG.2*N N N N N N N N N Nr   r   )engineior   r    r   r   <module>r      sz    6 6 6 6 6h 6 6 6@N N N N N N N N N Nr   