U
    ²@Ûf7  ã                   @   s.   d dl Z G dd„ de jƒZG dd„ deƒZdS )é    Nc                       s"   e Zd ZdZd‡ fdd„	Z‡  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                    s   t ƒ j||||d� d S )N)Ústatic_filesZengineio_path©ÚsuperÚ__init__)ÚselfÚsocketio_appÚwsgi_appr   Úsocketio_path©Ú	__class__© úM/var/www/html/chatgpt/venv/lib/python3.8/site-packages/socketio/middleware.pyr      s    ÿzWSGIApp.__init__)NNr   ©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__r   r   r   r   r      s     ÿr   c                       s"   e Zd ZdZd‡ fdd„	Z‡  ZS )Ú
Middlewarez=This class has been renamed to WSGIApp and is now deprecated.Nr   c                    s   t ƒ j|||d� d S )N)r   r   )r   r	   r
   r   r   r   r   r   &   s    zMiddleware.__init__)Nr   r   r   r   r   r   r   $   s     ÿr   )Zengineior   r   r   r   r   r   Ú<module>   s    