
    2Bfz                         d dl Z d dlZd dlZd dlZd dlZd dlZddlmZ ddlmZ ddlm	Z	  ej                  d      Zg Zd Zda G d d	e      Zy)
    N   )
exceptions	namespace)packetzsocketio.clientc                     t         dd D ]  }|j                  j                           t        t              rt	        | |      S t        j                  | |      S )zSIGINT handler.

    Notify any clients that are in a reconnect loop to abort. Other
    disconnection tasks are handled at the engine.io level.
    N)reconnecting_clients_reconnect_abortsetcallableoriginal_signal_handlersignaldefault_int_handler)sigframeclients      O/var/www/highfloat_scraper/venv/lib/python3.12/site-packages/socketio/client.pysignal_handlerr      sU     'q) &##%&'(&sE22 ))#u55    c                       e Zd ZdZ	 	 	 	 d#dZd Zd$dZd Zd	 Zi dddd
ddfdZ	d Z
d%dZd$dZd&dZd Zd'dZd Zd Zd(dZd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd  Zd! Zd" Z y))Clienta  A Socket.IO client.

    This class implements a fully compliant Socket.IO web client with support
    for websocket and long-polling transports.

    :param reconnection: ``True`` if the client should automatically attempt to
                         reconnect to the server after an interruption, or
                         ``False`` to not reconnect. The default is ``True``.
    :param reconnection_attempts: How many reconnection attempts to issue
                                  before giving up, or 0 for infinite attempts.
                                  The default is 0.
    :param reconnection_delay: How long to wait in seconds before the first
                               reconnection attempt. Each successive attempt
                               doubles this delay.
    :param reconnection_delay_max: The maximum delay between reconnection
                                   attempts.
    :param randomization_factor: Randomization amount for each delay between
                                 reconnection attempts. The default is 0.5,
                                 which means that each delay is randomly
                                 adjusted by +/- 50%.
    :param logger: To enable logging set to ``True`` or pass a logger object to
                   use. To disable logging set to ``False``. The default is
                   ``False``. Note that fatal errors are logged even when
                   ``logger`` is ``False``.
    :param serializer: The serialization method to use when transmitting
                       packets. Valid values are ``'default'``, ``'pickle'``,
                       ``'msgpack'`` and ``'cbor'``. Alternatively, a subclass
                       of the :class:`Packet` class with custom implementations
                       of the ``encode()`` and ``decode()`` methods can be
                       provided. Client and server must use compatible
                       serializers.
    :param json: An alternative json module to use for encoding and decoding
                 packets. Custom json modules must have ``dumps`` and ``loads``
                 functions that are compatible with the standard library
                 versions.

    The Engine.IO configuration supports the following settings:

    :param request_timeout: A timeout in seconds for requests. The default is
                            5 seconds.
    :param http_session: an initialized ``requests.Session`` object to be used
                         when sending requests to the server. Use it if you
                         need to add special client options such as proxy
                         servers, SSL certificates, etc.
    :param ssl_verify: ``True`` to verify SSL certificates, or ``False`` to
                       skip SSL certificate verification, allowing
                       connections to servers with self signed certificates.
                       The default is ``True``.
    :param engineio_logger: To enable Engine.IO logging set to ``True`` or pass
                            a logger object to use. To disable logging set to
                            ``False``. The default is ``False``. Note that
                            fatal errors are logged even when
                            ``engineio_logger`` is ``False``.
    Tr   Nc	                 n   t         Qt        j                         t        j                         k(  r(t	        j                  t        j
                  t              a || _        || _        || _	        || _
        || _        |	}
|
j                  dd       }|||
d<   |dk(  rt        j                  | _        n$|dk(  rddlm} |j$                  | _        n|| _        ||| j                  _        ||
d<    | j)                         di |
| _        | j*                  j-                  d| j.                         | j*                  j-                  d	| j0                         | j*                  j-                  d
| j2                         t5        |t6              s|| _        nt:        | _        | j8                  j<                  t>        j@                  k(  r|r*| j8                  jC                  t>        jD                         n)| j8                  jC                  t>        jF                         | j8                  jI                  t?        jJ                                d | _&        d | _'        d | _(        d | _)        g | _*        d | _+        d | _,        d| _-        i | _.        i | _/        i | _0        i | _1        d | _2        d | _3        d | _4        d | _5        y )Nengineio_loggerloggerdefaultmsgpackr   )msgpack_packetjsonconnectmessage
disconnectF )6r   	threadingcurrent_threadmain_threadr   SIGINTr   reconnectionreconnection_attemptsreconnection_delayreconnection_delay_maxrandomization_factorpopr   Packetpacket_class r   MsgPackPacketr   _engineio_client_classeioon_handle_eio_connect_handle_eio_message_handle_eio_disconnect
isinstanceboolr   default_loggerlevelloggingNOTSETsetLevelINFOERROR
addHandlerStreamHandlerconnection_urlconnection_headersconnection_authconnection_transportsconnection_namespacessocketio_pathsid	connected
namespaceshandlersnamespace_handlers	callbacks_binary_packet_connect_event_reconnect_taskr
   )selfr'   r(   r)   r*   r+   r   
serializerr   kwargsengineio_optionsr   r   s                r   __init__zClient.__init__Z   s9   
 #*((*i.C.C.EE&,mmFMM4B'D#(%:""4&<#$8!!*../@$G&)8X&" &D9$( . < <D *D%)D"'+V$04..0D3CDIt778It778L$"="=>&$' DK(DK{{  GNN2KK((6KK((7&&w'<'<'>?""&#%)"%'"!"$""# $r   c                      y)NFr"   rQ   s    r   is_asyncio_basedzClient.is_asyncio_based   s    r   c                 <     xs d fd}||S  ||       y)a  Register an event handler.

        :param event: The event name. It can be any string. The event names
                      ``'connect'``, ``'message'`` and ``'disconnect'`` are
                      reserved and should not be used.
        :param handler: The function that should be invoked to handle the
                        event. When this parameter is not given, the method
                        acts as a decorator for the handler function.
        :param namespace: The Socket.IO namespace for the event. If this
                          argument is omitted the handler is associated with
                          the default namespace.

        Example usage::

            # as a decorator:
            @sio.on('connect')
            def connect_handler():
                print('Connected!')

            # as a method:
            def message_handler(msg):
                print('Received message: ', msg)
                sio.send( 'response')
            sio.on('message', message_handler)

        The ``'connect'`` event handler receives no arguments. The
        ``'message'`` handler and handlers for custom event names receive the
        message payload as only argument. Any values returned from a message
        handler will be passed to the client's acknowledgement callback
        function if it exists. The ``'disconnect'`` handler does not take
        arguments.
        /c                 f    j                   vri j                   <   | j                      <   | S N)rK   )handlereventr   rQ   s    r   set_handlerzClient.on.<locals>.set_handler   s5    -+-i(.5DMM)$U+Nr   Nr"   )rQ   r^   r]   r   r_   s   `` ` r   r3   z	Client.on   s*    B $		 ?Gr   c                      t              dk(  rCt              dk(  r5t        d         r'  j                  d   j                        d         S  fd}|S )a  Decorator to register an event handler.

        This is a simplified version of the ``on()`` method that takes the
        event name from the decorated function.

        Example usage::

            @sio.event
            def my_event(data):
                print('Received data: ', data)

        The above example is equivalent to::

            @sio.on('my_event')
            def my_event(data):
                print('Received data: ', data)

        A custom namespace can be given as an argument to the decorator::

            @sio.event(namespace='/test')
            def my_event(data):
                print('Received data: ', data)
        r   r   c                 P      j                   | j                  gi |       S r\   )r3   __name__)r]   argsrS   rQ   s    r   r_   z!Client.event.<locals>.set_handler   s+    Awtwww//A$A&A'JJr   )lenr   r3   rb   )rQ   rc   rS   r_   s   ``` r   r^   zClient.event   sZ    0 t9>c&kQ.8DG3D -47747++,T!W55K r   c                     t        |t        j                        st        d      | j	                         |j	                         k7  rt        d      |j                  |        || j                  |j                  <   y)zRegister a namespace handler object.

        :param namespace_handler: An instance of a :class:`Namespace`
                                  subclass that handles all the event traffic
                                  for a namespace.
        zNot a namespace instancez+Not a valid namespace class for this clientN)r7   r   ClientNamespace
ValueErrorrX   _set_clientrL   )rQ   namespace_handlers     r   register_namespacezClient.register_namespace   sp     +Y-F-FG788  "&7&H&H&JJJKK%%d+ 	 1 ; ;<r   z	socket.ioc	                    | j                   rt        j                  d      || _        || _        || _        || _        || _        || _        |nt        t        | j                  j                               j                  t        | j                  j                                           }t        |      dk(  rdg}nt!        |t"              r|g}|| _        i | _        | j&                   | j(                  j+                         | _        n| j&                  j-                          | j/                  | j                        }	| j/                  | j                        }
	 | j(                  j1                  |	|
||       |r| j&                  j9                  |      rc| j&                  j-                          t        | j$                        t        | j                        k(  rn| j&                  j9                  |      rct        | j$                        t        | j                        k7  r%| j;                          t        j                  d	      d
| _         y# t2        j                  j                  $ ro}| j5                  ddt        |j6                        dkD  r|j6                  d   n|j6                  d          t        j                  |j6                  d         dd}~ww xY w)a	  Connect to a Socket.IO server.

        :param url: The URL of the Socket.IO server. It can include custom
                    query string parameters if required by the server. If a
                    function is provided, the client will invoke it to obtain
                    the URL each time a connection or reconnection is
                    attempted.
        :param headers: A dictionary with custom headers to send with the
                        connection request. If a function is provided, the
                        client will invoke it to obtain the headers dictionary
                        each time a connection or reconnection is attempted.
        :param auth: Authentication data passed to the server with the
                     connection request, normally a dictionary with one or
                     more string key/value pairs. If a function is provided,
                     the client will invoke it to obtain the authentication
                     data each time a connection or reconnection is attempted.
        :param transports: The list of allowed transports. Valid transports
                           are ``'polling'`` and ``'websocket'``. If not
                           given, the polling transport is connected first,
                           then an upgrade to websocket is attempted.
        :param namespaces: The namespaces to connect as a string or list of
                           strings. If not given, the namespaces that have
                           registered event handlers are connected.
        :param socketio_path: The endpoint where the Socket.IO server is
                              installed. The default value is appropriate for
                              most cases.
        :param wait: if set to ``True`` (the default) the call only returns
                     when all the namespaces are connected. If set to
                     ``False``, the call returns as soon as the Engine.IO
                     transport is connected, and the namespaces will connect
                     in the background.
        :param wait_timeout: How long the client should wait for the
                             connection. The default is 1 second. This
                             argument is only considered when ``wait`` is set
                             to ``True``.

        Example usage::

            sio = socketio.Client()
            sio.connect('http://localhost:5000')
        zAlready connectedNr   rZ   )headers
transportsengineio_pathconnect_errorr   timeoutz(One or more namespaces failed to connectT)rI   r   ConnectionErrorrB   rC   rD   rE   rF   rG   listr   rK   keysunionrL   rd   r7   strrJ   rO   r2   create_eventclear_get_real_valuer   engineio_trigger_eventrc   waitr!   )rQ   urlrl   authrm   rJ   rG   r|   wait_timeoutreal_urlreal_headersexcs               r   r   zClient.connect   sq   X >>,,-@AA!")#%/"%/"*c$--"4"4"67==D++00235 6J:!#!U

C($J%/"&"&(("7"7"9D%%'''(;(;<++D,C,CD	DHHX|(2+8  : %%**<*@##))+t'3t/I/I+JJ %%**<*@ 4??#s4+E+E'FF! 00>@ @ ! ""22 	D"388}q0chhqkC ,,SXXa[9tC		Ds   I K/A*KKc                     	 | j                   j                          | j                  d       | j                  sy| j                  j	                          | j                   j
                  dk7  rym)zWait until the connection with the server ends.

        Client applications can use this function to block the main thread
        during the life of the connection.
        r   rI   N)r2   r|   sleeprP   joinstaterW   s    r   r|   zClient.waitW  sU     HHMMOJJqM''  %%'xx~~, r   c                 x   |xs d}|| j                   vrt        j                  |dz         | j                  j	                  d||       || j                  ||      }nd}t        |t              rt        |      }n||g}ng }| j                  | j                  t        j                  ||g|z   |             y)aF  Emit a custom event to one or more connected clients.

        :param event: The event name. It can be any string. The event names
                      ``'connect'``, ``'message'`` and ``'disconnect'`` are
                      reserved and should not be used.
        :param data: The data to send to the server. Data can be of
                     type ``str``, ``bytes``, ``list`` or ``dict``. To send
                     multiple arguments, use a tuple where each element is of
                     one of the types indicated above.
        :param namespace: The Socket.IO namespace for the event. If this
                          argument is omitted the event is emitted to the
                          default namespace.
        :param callback: If given, this function will be called to acknowledge
                         the the server has received the message. The arguments
                         that will be passed to the function are those provided
                         by the server.

        Note: this method is not thread safe. If multiple threads are emitting
        at the same time on the same client connection, messages composed of
        multiple packets may end up being sent in an incorrect sequence. Use
        standard concurrency solutions (such as a Lock object) to prevent this
        situation.
        rZ   z is not a connected namespace.zEmitting event "%s" [%s]N)r   dataid)rJ   r   BadNamespaceErrorr   info_generate_ack_idr7   tuplers   _send_packetr.   r   EVENT)rQ   r^   r   r   callbackr   s         r   emitzClient.emitf  s    0 $	DOO+..<<> >3UIF&&y(;BB dE":D6DD$++FLLI274B , H 	Ir   c                 .    | j                  d|||       y)a  Send a message to one or more connected clients.

        This function emits an event with the name ``'message'``. Use
        :func:`emit` to issue custom event names.

        :param data: The data to send to the server. Data can be of
                     type ``str``, ``bytes``, ``list`` or ``dict``. To send
                     multiple arguments, use a tuple where each element is of
                     one of the types indicated above.
        :param namespace: The Socket.IO namespace for the event. If this
                          argument is omitted the event is emitted to the
                          default namespace.
        :param callback: If given, this function will be called to acknowledge
                         the the server has received the message. The arguments
                         that will be passed to the function are those provided
                         by the server.
        r    r   r   r   N)r   )rQ   r   r   r   s       r   sendzClient.send  s    $ 			)$)# 	 	%r   c                 "   | j                   j                         g fd}| j                  ||||       j                  |      st	        j
                         t        d         dkD  rd   S t        d         dk(  rd   d   S dS )a  Emit a custom event to a client and wait for the response.

        :param event: The event name. It can be any string. The event names
                      ``'connect'``, ``'message'`` and ``'disconnect'`` are
                      reserved and should not be used.
        :param data: The data to send to the server. Data can be of
                     type ``str``, ``bytes``, ``list`` or ``dict``. To send
                     multiple arguments, use a tuple where each element is of
                     one of the types indicated above.
        :param namespace: The Socket.IO namespace for the event. If this
                          argument is omitted the event is emitted to the
                          default namespace.
        :param timeout: The waiting timeout. If the timeout is reached before
                        the client acknowledges the event, then a
                        ``TimeoutError`` exception is raised.

        Note: this method is not thread safe. If multiple threads are emitting
        at the same time on the same client connection, messages composed of
        multiple packets may end up being sent in an incorrect sequence. Use
        standard concurrency solutions (such as a Lock object) to prevent this
        situation.
        c                  H    j                  |        j                          y r\   )appendr   )rc   callback_argscallback_events    r   event_callbackz#Client.call.<locals>.event_callback  s      & r   r   rp   r   r   N)r2   rw   r   r|   r   TimeoutErrorrd   )rQ   r^   r   r   rq   r   r   r   s         @@r   callzClient.call  s    . ..0	! 			%di) 	 	+""7"3))++#&}Q'7#81#<}Q 	(+M!,<(=(Bq!!$		r   c                     | j                   D ]2  }| j                  | j                  t        j                  |             4 | j
                  j                  d       y)zDisconnect from the server.r   TabortN)rJ   r   r.   r   
DISCONNECTr2   r!   rQ   ns     r   r!   zClient.disconnect  sY      	1Ad//!!Q 0 0 1	1 	$'r   c                 @    | j                   j                  |xs d      S )a   Return the ``sid`` associated with a connection.

        :param namespace: The Socket.IO namespace. If this argument is omitted
                          the handler is associated with the default
                          namespace. Note that unlike previous versions, the
                          current version of the Socket.IO protocol uses
                          different ``sid`` values per namespace.

        This method returns the ``sid`` for the requested namespace as a
        string.
        rZ   )rJ   getrQ   r   s     r   get_sidzClient.get_sid  s     ""9#344r   c                 6    | j                   j                         S )zReturn the name of the transport used by the client.

        The two possible values returned by this function are ``'polling'``
        and ``'websocket'``.
        )r2   	transportrW   s    r   r   zClient.transport  s     xx!!##r   c                 B     | j                   j                  |g|i |S )ad  Start a background task using the appropriate async model.

        This is a utility function that applications can use to start a
        background task using the method that is compatible with the
        selected async mode.

        :param target: the target function to execute.
        :param args: arguments to pass to the function.
        :param kwargs: keyword arguments to pass to the function.

        This function returns an object compatible with the `Thread` class in
        the Python standard library. The `start()` method on this object is
        already called by this function.
        )r2   start_background_task)rQ   targetrc   rS   s       r   r   zClient.start_background_task  s%     .txx--fFtFvFFr   c                 8    | j                   j                  |      S )a  Sleep for the requested amount of time using the appropriate async
        model.

        This is a utility function that applications can use to put a task to
        sleep without having to worry about using the correct call for the
        selected async mode.
        )r2   r   )rQ   secondss     r   r   zClient.sleep  s     xx~~g&&r   c                 *    t        |      s|S  |       S )zTReturn the actual value, for parameters that can also be given as
        callables.)r   )rQ   values     r   ry   zClient._get_real_value  s     Lwr   c                     |j                         }t        |t              r#|D ]  }| j                  j	                  |        y| j                  j	                  |       y)z&Send a Socket.IO packet to the server.N)encoder7   rs   r2   r   )rQ   pktencoded_packeteps       r   r   zClient._send_packet  sH    nd+$ "b!" HHMM.)r   c                     |xs d}|| j                   vr$dt        j                  d      i| j                   |<   t        | j                   |   d         }|| j                   |   |<   |S )z/Generate a unique identifier for an ACK packet.rZ   r   r   )rM   	itertoolscountnext)rQ   r   r   r   s       r   r   zClient._generate_ack_id  sd    $	DNN*)*IOOA,>(?DNN9%$..+A./(0y!"%	r   c                 6   |xs d}|| j                   vr| j                  j                  dj                  |             |xs i j	                  d| j
                        | j                   |<   | j                  d|       | j                  j                          y y )NrZ   zNamespace {} is connectedrH   r   r   )	rJ   r   r   formatr   rH   r{   rO   r   rQ   r   r   s      r   _handle_connectzClient._handle_connect   s    $	DOO+KK8??	JK*.*")9)9%)JDOOI&	Y?##%	 ,r   c                     | j                   sy |xs d}| j                  d|       || j                  v r| j                  |= | j                  s$d| _         | j                  j	                  d       y y )NrZ   r!   r   FTr   )rI   r{   rJ   r2   r!   r   s     r   _handle_disconnectzClient._handle_disconnect(  si    ~~$	LI>'	*"DNHHd+ r   c                 6   |xs d}| j                   j                  d|d   |        | j                  |d   |g|dd   }|W|g }nt        |t              rt        |      }n|g}| j                  | j                  t        j                  |||             y y )NrZ   zReceived event "%s" [%s]r   r   )r   r   r   )
r   r   r{   r7   r   rs   r   r.   r   ACK)rQ   r   r   r   rs        r   _handle_eventzClient._handle_event3  s    $	3T!WiHDQ>T!"X>> yAu%Awsd//

iBT 0 C D r   c                     |xs d}| j                   j                  d|       d }	 | j                  |   |   }| j                  |   |= | ||  y y # t        $ r | j                   j	                  d       Y /w xY w)NrZ   zReceived ack [%s]z$Unknown callback received, ignoring.)r   r   rM   KeyErrorwarning)rQ   r   r   r   r   s        r   _handle_ackzClient._handle_ackC  s    $	,i8	.~~i04H
 y)"-dO    	HKK FG	Hs   A $A87A8c                 j   |xs d}| j                   j                  dj                  |             |t               }nt	        |t        t
        f      s|f} | j                  d|g|  | j                  j                          || j                  v r| j                  |= |dk(  ri | _	        d| _
        y y )NrZ   z'Connection to namespace {} was rejectedro   F)r   r   r   r   r7   rs   r{   rO   r   rJ   rI   r   s      r   _handle_errorzClient._handle_errorQ  s    $	BII 	<7DD5$-07DOY>>!'	* DO"DN r   c                     || j                   v r&|| j                   |   v r | j                   |   |   | S || j                  v r  | j                  |   j                  |g| S y)z$Invoke an application event handler.N)rK   rL   trigger_event)rQ   r^   r   rc   s       r   r{   zClient._trigger_eventa  s{     %%4==3K*K24==+E2D99 $111C4**95CC  2r   c                    | j                   | j                  j                         | _         | j                   j                          t        j                  |        d}| j                  }	 |}|dz  }|| j                  kD  r| j                  }|| j                  dt        j                         z  dz
  z  z  }| j                  j                  dj                  |             | j                   j                  |      r| j                  j                  d       n||dz  }	 | j                  | j                  | j                   | j"                  | j$                  | j&                  | j(                         | j                  j                  d       d | _        	 t        j5                  |        y # t,        j.                  t0        f$ r Y nw xY w| j2                  r+|| j2                  k\  r| j                  j                  d       l)	Nr      r   z1Connection failed, new attempt in {:.02f} secondszReconnect task aborted)rl   r~   rm   rJ   rG   zReconnection successfulz0Maximum reconnection attempts reached, giving up)r
   r2   rw   rx   r	   r   r)   r*   r+   randomr   r   r   r|   r   rB   rC   rD   rE   rF   rG   rP   r   rr   rg   r(   remove)rQ   attempt_countcurrent_delaydelays       r   _handle_reconnectzClient._handle_reconnectl  s     ($(HH$9$9$;D!##%##D)//!EQMt22233T..!fmmo2E2IJJEKKCJJ $$))%0  !9:QMT00%)%<%<"&"6"6(,(B(B(,(B(B+/+=+=  ?   !:;'+$ 	##D) ..
;  ))!T%?%??  FH= s   AF) )GGc                 *   | j                   j                  d       | j                  j                  | _        | j	                  | j
                        }| j                  D ]3  }| j                  | j                  t        j                  ||             5 y)z&Handle the Engine.IO connection event.z Engine.IO connection established)r   r   N)r   r   r2   rH   ry   rD   rF   r   r.   r   CONNECT)rQ   	real_authr   s      r   r4   zClient._handle_eio_connect  sz    ;<88<<(()=)=>	++ 	>Ad//Y! 0 = >	>r   c                    | j                   r| j                   }|j                  |      rd| _         |j                  t        j                  k(  r2| j                  |j                  |j                  |j                         y| j                  |j                  |j                  |j                         yy| j                  |      }|j                  t        j                  k(  r'| j                  |j                  |j                         y|j                  t        j                  k(  r| j                  |j                         y|j                  t        j                  k(  r2| j                  |j                  |j                  |j                         y|j                  t        j                   k(  r2| j                  |j                  |j                  |j                         y|j                  t        j                  k(  s|j                  t        j"                  k(  r|| _         y|j                  t        j$                  k(  r'| j'                  |j                  |j                         yt)        d      )zDispatch Engine.IO messages.N)r   zUnknown packet type.)rN   add_attachmentpacket_typer   BINARY_EVENTr   r   r   r   r   r.   r   r   r   r   r   r   
BINARY_ACKCONNECT_ERRORr   rg   )rQ   r   r   s      r   r5   zClient._handle_eio_message  s   %%C!!$'&*#??f&9&99&&s}}cffchhG$$S]]CFFCHHE ( ##4#8C&..0$$S]]CHH=F$5$55''6FLL0""3==#&&#((CFJJ.  AF$7$77OOv'8'88&)#F$8$88""3==#((; !788r   c                 n   | j                   j                  d       | j                  r2| j                  D ]  }| j	                  d|        i | _        d| _        i | _        d| _        d| _        | j                  j                  dk(  r.| j                  r!| j                  | j                        | _        yyy)z)Handle the Engine.IO disconnection event.zEngine.IO connection droppedr!   r   FNrI   )r   r   rI   rJ   r{   rM   rN   rH   r2   r   r'   r   r   rP   r   s     r   r6   zClient._handle_eio_disconnect  s    78>>__ ?##LA#>? DO"DN"88>>[(T->->#'#=#=&&$(D  .?(r   c                 "    t         j                  S r\   )rz   r   rW   s    r   r1   zClient._engineio_client_class  s    r   )Tr   r      g      ?Fr   N)NN)NNN)NN<   r\   )r   )!rb   
__module____qualname____doc__rU   rX   r3   r^   rj   r   r|   r   r   r   r!   r   r   r   r   ry   r   r   r   r   r   r   r   r{   r   r4   r5   r6   r1   r"   r   r   r   r   #   s    5l AB>?DM>%@+Z!F $&DT{Yv*IX%*$L(5$G"'*&	,D # 	&*P>98(r   r   )r   r;   r   r   r#   rz   r/   r   r   r   	getLoggerr9   r	   r   r   objectr   r"   r   r   <module>r      sT            """#45 6  f
V f
r   