�
���g7 � �P � d dl Z G d� de j � � Z G d� de� � ZdS )� Nc �( � � e Zd ZdZ d� fd� Z� xZS )�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 ��c/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/socketio/middleware.pyr zWSGIApp.__init__ s7 �� �
������x�l�'4� � 6� 6� 6� 6� 6� )NNr ��__name__�
__module__�__qualname__�__doc__r �
__classcell__�r s @r r r sQ �� � � � � �� �2 BF�*�6� 6� 6� 6� 6� 6� 6� 6� 6� 6r r c �( � � e Zd ZdZ d� fd� Z� xZS )�
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 zMiddleware.__init__&