
    2Bf                     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                 4    t         t        |   ||||       y )N)static_filesengineio_path)superr   __init__)selfsocketio_appwsgi_appr   socketio_path	__class__s        S/var/www/highfloat_scraper/venv/lib/python3.12/site-packages/socketio/middleware.pyr	   zWSGIApp.__init__   s"    gt%lH3?4A 	& 	C    )NN	socket.io__name__
__module____qualname____doc__r	   __classcell__r   s   @r   r   r      s    2 BF*C Cr   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                 2    t         t        |   |||       y )N)r   )r   r   r	   )r
   r   r   r   r   s       r   r	   zMiddleware.__init__'   s    j$(x7D 	) 	Fr   )Nr   r   r   s   @r   r   r   %   s    G.2*F Fr   r   )engineior   r    r   r   <module>r      s+    Ch CBF Fr   