Files
aitsc/.venv/Lib/site-packages/engineio/__pycache__/server.cpython-312.pyc

199 lines
24 KiB
Plaintext
Raw Normal View History

2025-02-23 09:07:52 +08:00
<EFBFBD>
W0<57>g<EFBFBD>Y<00><00><><00>ddlZddlZddlmZddlmZddlmZddlmZejd<07>ZGd<08>d ej<00>Z
y)
<EFBFBD>N<>)<01> base_server)<01>
exceptions)<01>packet)<01>socketzengineio.serverc<00>f<00>eZdZdZd<02>Zd<03>Zd<04>Zd<05>Zd<06>Zdd<08>Z d <09>Z
d
<EFBFBD>Z d <0B>Z dd <0C>Z dd <0A>Zd<0E>Zd<0F>Zy)<12>Servera,An Engine.IO server.
This class implements a fully compliant Engine.IO web server with support
for websocket and long-polling transports.
:param async_mode: The asynchronous model to use. See the Deployment
section in the documentation for a description of the
available options. Valid async modes are "threading",
"eventlet", "gevent" and "gevent_uwsgi". If this
argument is not given, "eventlet" is tried first, then
"gevent_uwsgi", then "gevent", and finally "threading".
The first async mode that has all its dependencies
installed is the one that is chosen.
:param ping_interval: The interval in seconds at which the server pings
the client. The default is 25 seconds. For advanced
control, a two element tuple can be given, where
the first number is the ping interval and the second
is a grace period added by the server.
:param ping_timeout: The time in seconds that the client waits for the
server to respond before disconnecting. The default
is 20 seconds.
:param max_http_buffer_size: The maximum size that is accepted for incoming
messages. The default is 1,000,000 bytes. In
spite of its name, the value set in this
argument is enforced for HTTP long-polling and
WebSocket connections.
:param allow_upgrades: Whether to allow transport upgrades or not. The
default is ``True``.
:param http_compression: Whether to compress packages when using the
polling transport. The default is ``True``.
:param compression_threshold: Only compress messages when their byte size
is greater than this value. The default is
1024 bytes.
:param cookie: If set to a string, it is the name of the HTTP cookie the
server sends back tot he client containing the client
session id. If set to a dictionary, the ``'name'`` key
contains the cookie name and other keys define cookie
attributes, where the value of each attribute can be a
string, a callable with no arguments, or a boolean. If set
to ``None`` (the default), a cookie is not sent to the
client.
:param cors_allowed_origins: Origin or list of origins that are allowed to
connect to this server. Only the same origin
is allowed by default. Set this argument to
``'*'`` to allow all origins, or to ``[]`` to
disable CORS handling.
:param cors_credentials: Whether credentials (cookies, authentication) are
allowed in requests to this server. The default
is ``True``.
: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 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.
:param async_handlers: If set to ``True``, run message event handlers in
non-blocking threads. To run handlers synchronously,
set to ``False``. The default is ``True``.
:param monitor_clients: If set to ``True``, a background task will ensure
inactive clients are closed. Set to ``False`` to
disable the monitoring task (not recommended). The
default is ``True``.
:param transports: The list of allowed transports. Valid transports
are ``'polling'`` and ``'websocket'``. Defaults to
``['polling', 'websocket']``.
:param kwargs: Reserved for future extensions, any additional parameters
given as keyword arguments will be silently ignored.
c<00>n<00>|j|tjtj|<02><01><00>y)a>Send a message to a client.
:param sid: The session id of the recipient client.
:param data: The data to send to the client. Data can be of type
``str``, ``bytes``, ``list`` or ``dict``. If a ``list``
or ``dict``, the data will be serialized as JSON.
)<01>dataN)<04> send_packetr<00>Packet<65>MESSAGE)<03>self<6C>sidr s <20>9D:\wxxcx\tsccc\.venv\Lib\site-packages\engineio/server.py<70>sendz Server.sendSs#<00><00> <0A><18><18><13>f<EFBFBD>m<EFBFBD>m<EFBFBD>F<EFBFBD>N<EFBFBD>N<EFBFBD><14>F<>G<>c<00><><00> |j|<01>}|j|<02>y#t$r|jjd|<01>YywxYw)z<>Send a raw packet to a client.
:param sid: The session id of the recipient client.
:param pkt: The packet to send to the client.
zCannot send to sid %sN)<05> _get_socket<65>KeyError<6F>logger<65>warningr)rr<00>pktrs rr zServer.send_packet]sP<00><00>  <13><19>%<25>%<25>c<EFBFBD>*<2A>F<EFBFBD>
<14><06> <0B> <0B>C<EFBFBD><18><> <18> <13> <10>K<EFBFBD>K<EFBFBD> <1F> <1F> 7<><13> =<3D> <12> <13>s<00>&<00>%A<03> Ac<00><<00>|j|<01>}|jS)aCReturn the user session for a client.
:param sid: The session id of the client.
The return value is a dictionary. Modifications made to this
dictionary are not guaranteed to be preserved unless
``save_session()`` is called, or when the ``session`` context manager
is used.
<20>r<00>session)rrrs r<00> get_sessionzServer.get_sessionks<00><00><16>!<21>!<21>#<23>&<26><06><15>~<7E>~<7E>rc<00>4<00>|j|<01>}||_y)z<>Store the user session for a client.
:param sid: The session id of the client.
:param session: The session dictionary.
Nr)rrrrs r<00> save_sessionzServer.save_sessionxs<00><00> <16>!<21>!<21>#<23>&<26><06> <20><06>rc<00>.<00><01>G<00>fd<01>d<02>}||<00><01>S)aNReturn the user session for a client with context manager syntax.
:param sid: The session id of the client.
This is a context manager that returns the user session dictionary for
the client. Any changes that are made to this dictionary inside the
context manager block are saved back to the session. Example usage::
@eio.on('connect')
def on_connect(sid, environ):
username = authenticate_user(environ)
if not username:
return False
with eio.session(sid) as session:
session['username'] = username
@eio.on('message')
def on_message(sid, msg):
with eio.session(sid) as session:
print('received message from ', session['username'])
c<00>(<00><01>eZdZd<01>Z<03>fd<02>Z<04>fd<03>Zy)<05>0Server.session.<locals>._session_context_managerc<00>.<00>||_||_d|_y<00>N)<03>serverrr)rr%rs r<00>__init__z9Server.session.<locals>._session_context_manager.__init__<5F>s<00><00>$<24><04> <0B><1E><04><08>#<23><04> rc<00>\<00><01>|jj<00><01>|_|jSr$)r%rr)rrs <20>r<00> __enter__z:Server.session.<locals>._session_context_manager.__enter__<5F>s#<00><><00>#<23>{<7B>{<7B>6<>6<>s<EFBFBD>;<3B><04> <0C><1B>|<7C>|<7C>#rc<00>R<00><01>|jj<00>|j<00>yr$)r%rr)r<00>argsrs <20>r<00>__exit__z9Server.session.<locals>._session_context_manager.__exit__<5F>s<00><><00><14> <0B> <0B>(<28>(<28><13>d<EFBFBD>l<EFBFBD>l<EFBFBD>;rN)<06>__name__<5F>
__module__<EFBFBD> __qualname__r&r(r+)rs<00>r<00>_session_context_managerr"<00>s<00><><00> $<24>
 $<24> <rr/<00>)rrr/s ` rrzServer.session<6F>s<00><><00>, <<3C> <<3C>(<28><04>c<EFBFBD>2<>2rNc<00><><00>|<01>V |j|<01>}|j|jj<00><02>||jvr|j|=yy|jj <00>j<00>D](}|j|jj<00><02><00>*i|_y#t
$rYywxYw)z<>Disconnect a client.
:param sid: The session id of the client to close. If this parameter
is not given, then all clients are closed.
N)<01>reason)r<00>closer2<00>SERVER_DISCONNECT<43>socketsr<00>copy<70>values)rrr<00>clients r<00>
disconnectzServer.disconnect<63>s<><00><00> <0F>?<3F> *<2A><1D>)<29>)<29>#<23>.<2E><06>
<1D><06> <0C> <0C>D<EFBFBD>K<EFBFBD>K<EFBFBD>$A<>$A<>B<><16>$<24>,<2C>,<2C>&<26><1C> <0C> <0C>S<EFBFBD>)<29>'<27><1F>,<2C>,<2C>+<2B>+<2B>-<2D>4<>4<>6<><06><16> <0C> <0C>D<EFBFBD>K<EFBFBD>K<EFBFBD>$A<>$A<> <0C>B<>7<><1D>D<EFBFBD>L<EFBFBD><4C><1C> <15><14> <15>s<00>B4<00>4 C<03>?Cc<00><> <00>|jgk7re|jd<01>}|rR|j|<01>}|<04>?||vr;|j|dzd<04>|j d<05>}||d|d<00>|dgS|d }t
j j|jd
d <0B><00>}d }d} |jd dg<01>d}
|
|jvr8|jdd<11>|j d<10>}||d|d<00>|dgSd|vr|ddnd} | <0B>M|jd<13>dgk7r8|jdd<16>|j d<15>}||d|d<00>|dgSd|vrd} t|dd<00>} |r'| <09>%|jdd<1A>|j d<19>}<05>n.|dk(<00>rpd|vr|jd<1C>j<00>nd} | <0B>N|
dk(s|
| cxk(rdk(rnn|j|||
| <09>}<05>n<>|jdd<1F>|j d<1E>}<05>n<>| |jvr+|jd | <0B><00>d!<21>|j d | <0B><00><02>}<05>nz |j!| <0B>} |j#| <0B>|
k7r-|
| k7r(|jd"| <0B><00>d<11>|j d<10>}<05>n' | j$||<02>}t'|t(<00>r|j+|| <09>#<23>}n|}| |jvr<>|j| j2r<>|j| =n<>|d%k(rq| <0B>| |jvr*|jd | <0B><00>d!<21>|j d | <0B><00><02>}ny|j!| <0B>} | j4|<01>|j+| <09>#<23>}nB|d'k(r|j+<00>}n,|j6j;d(|<06>|j=<00>}t'|t><00>s|S|j@r<>tC|d<00>|jDk\r<>|jd)d <0B>jGd*<2A>D<00>cgc]$}|jGd+<2B>djI<00><00><02>&}}|D]=}||jJvs<01>tM|d,|z<00>|d<00>|d<|dxxd-|fgz cc<n|jO|<01>}||d|d|z<00>|dgS#tttf$rY<00><03>`wxYw#t,j.$r3| |jvr|j1| <0B>|j <00>}Y<00><02>?wxYw#t$r8}|j|<0F>d$| <0B><00>d!<21>|j |<0F>d$| <0B><00><03>}Yd}~<0F><01><>d}~wwxYw#t,j.$r3| |jvr|j1| <0B>|j <00>}Y<00><01><>|j6j9d&<26>|j+| <09>#<23>}Y<00><02>xYwcc}w).a+Handle an HTTP request from the client.
This is the entry point of the Engine.IO application, using the same
interface as a WSGI application. For the typical usage, this function
is invoked by the :class:`Middleware` instance, but it can be invoked
directly when the middleware is not used.
:param environ: The WSGI environment.
:param start_response: The WSGI ``start_response`` function.
This function returns the HTTP response body to deliver to the client
as a byte sequence.
<20> HTTP_ORIGINNz is not an accepted origin.z
bad-originzNot an accepted origin.<2E>status<75>headers<72>response<73>REQUEST_METHOD<4F> QUERY_STRING<4E>F<> transport<72>pollingrzInvalid transportz bad-transportr<00>EIO<49>4zRThe client is using an unsupported version of the Socket.IO or Engine.IO protocolsz bad-version<6F>jTzInvalid JSONP index numberzbad-jsonp-index<65>GET<45> HTTP_UPGRADE<44> websocketzInvalid websocket upgradez bad-upgradezInvalid session zbad-sidzInvalid transport for session )<01> jsonp_index<65> <20>POSTzpost request handler error<6F>OPTIONSzMethod %s not supported<65>HTTP_ACCEPT_ENCODING<4E>,<2C>;<3B>_zContent-Encoding)(<28>cors_allowed_origins<6E>get<65>_cors_allowed_origins<6E>_log_error_once<63> _bad_request<73>urllib<69>parse<73>parse_qs<71>
transports<EFBFBD>int<6E>
ValueErrorr<00>
IndexError<EFBFBD>lower<65>_handle_connectr5rrB<00>handle_get_request<73>
isinstance<EFBFBD>list<73>_okr<00> EngineIOErrorr9<00>closed<65>handle_post_requestr<00> exceptionr<00>_method_not_found<6E>dict<63>http_compression<6F>len<65>compression_threshold<6C>split<69>strip<69>compression_methods<64>getattr<74> _cors_headers)r<00>environ<6F>start_response<73>origin<69>allowed_origins<6E>r<>method<6F>query<72>jsonprJrBr<00>upgrade_headerr<00>packets<74>e<> encodings<67>encoding<6E> cors_headerss r<00>handle_requestzServer.handle_request<73>sK<00><00> <10> $<24> $<24><02> *<2A><1D>[<5B>[<5B><1D>/<2F>F<EFBFBD><15>"&<26>"<<3C>"<<3C>W<EFBFBD>"E<><0F>"<22>.<2E>6<EFBFBD>'<27>4(<28><18>(<28>(<28><1E>!><3E>><3E> <0C>N<01><1C>)<29>)<29>*C<>D<>A<EFBFBD>"<22>1<EFBFBD>X<EFBFBD>;<3B><01>)<29> <0C>=<3D><1D>j<EFBFBD>M<EFBFBD>?<3F>*<2A><18>)<29>*<2A><06><16> <0C> <0C>%<25>%<25>g<EFBFBD>k<EFBFBD>k<EFBFBD>.<2E>"<22>&E<>F<><05><15><05><1A> <0B><1A>I<EFBFBD>I<EFBFBD>k<EFBFBD>I<EFBFBD>;<3B>7<><01>:<3A> <09> <14>D<EFBFBD>O<EFBFBD>O<EFBFBD> +<2B> <10> <20> <20>!4<>o<EFBFBD> F<><14>!<21>!<21>"5<>6<>A<EFBFBD> <1A>1<EFBFBD>X<EFBFBD>;<3B><01>)<29> <0C> 5<><15>j<EFBFBD>M<EFBFBD>?<3F> "<22>"'<27>%<25><1E>e<EFBFBD>E<EFBFBD>l<EFBFBD>1<EFBFBD>o<EFBFBD>T<EFBFBD><03> <0E>;<3B>5<EFBFBD>9<EFBFBD>9<EFBFBD>U<EFBFBD>+<2B><03>u<EFBFBD>4<> <10> <20> <20>)<29>*7<> 9<><15>!<21>!<21>)<29>*<2A>A<EFBFBD> <1B>1<EFBFBD>X<EFBFBD>;<3B><01>)<29> <0C> 5<><15>j<EFBFBD>M<EFBFBD>?<3F> "<22> <0E>%<25><<3C><18>E<EFBFBD> <15>!<21>%<25><03>*<2A>Q<EFBFBD>-<2D>0<> <0B>
<11>[<5B>(<28> <10> <20> <20>!=<3D>!2<> 4<><14>!<21>!<21>"><3E>?<3F>A<EFBFBD> <13>u<EFBFBD>_<EFBFBD>!<21>W<EFBFBD>,<2C>%<25>[<5B>[<5B><1E>8<>><3E>><3E>@<40>26<32> <1B><12>{<7B><1D> <09>)<29>$<24><0E>E<>+<2B>E<><1C>,<2C>,<2C>W<EFBFBD>n<EFBFBD>-6<> <0B>E<01>A<EFBFBD><19>(<28>(<28>)D<>)6<>8<><1C>)<29>)<29>*E<>F<>A<EFBFBD><16>d<EFBFBD>l<EFBFBD>l<EFBFBD>*<2A><18>(<28>(<28>+;<3B>C<EFBFBD>5<EFBFBD>)A<>9<EFBFBD>M<><1C>)<29>)<29>,<<3C>S<EFBFBD>E<EFBFBD>*B<>C<>A<EFBFBD>6<>!%<25>!1<>!1<>#<23>!6<><06>
 <20>><3E>><3E>#<23>.<2E>)<29>;<3B> )<29>^<5E> ;<3B> <20>0<>0<>"@<40><13><05> F<> /<2F>1<>!%<25> 1<> 1<>2E<32> F<>A<EFBFBD> 8<>*C<>&<26>*C<>*C<>$+<2B>^<5E>+=<3D><07>#-<2D>g<EFBFBD>t<EFBFBD>#<<3C>(,<2C><08><08><17>=H<>)1<>)J<01>A<EFBFBD>)0<>A<EFBFBD>
#<23>d<EFBFBD>l<EFBFBD>l<EFBFBD>2<>$(<28>L<EFBFBD>L<EFBFBD><13>$5<>$<<3C>$<<3C>$(<28>L<EFBFBD>L<EFBFBD><13>$5<> <13>v<EFBFBD> <1D><12>{<7B>c<EFBFBD><14><1C><1C>5<><14>$<24>$<24>'7<><03>u<EFBFBD>%=<3D>y<EFBFBD>I<><18>%<25>%<25>(8<><13><05>&><3E>?<3F><01><1D>)<29>)<29>#<23>.<2E><06> :<3A>.<2E>F<EFBFBD>.<2E>.<2E>w<EFBFBD>7<><1C><08><08>[<5B><08>9<>A<EFBFBD><14>y<EFBFBD> <20><14><08><08>
<EFBFBD>A<EFBFBD> <10>K<EFBFBD>K<EFBFBD> <1F> <1F> 9<>6<EFBFBD> B<><14>&<26>&<26>(<28>A<EFBFBD><19>!<21>T<EFBFBD>"<22><14>H<EFBFBD> <0F> <20> <20><13>A<EFBFBD>j<EFBFBD>M<EFBFBD>"<22>d<EFBFBD>&@<40>&@<40>@<40> <20><1B><1B>%;<3B>R<EFBFBD>@<40>F<>F<>s<EFBFBD>K<>M<01>K<>67<36><11><17><17><13><1C>a<EFBFBD><1F>.<2E>.<2E>0<>K<> <16>M<01>%<25><08><1B>t<EFBFBD>7<>7<>7<>5<><07><04>c<EFBFBD>H<EFBFBD>n<EFBFBD>5<>a<EFBFBD>
<EFBFBD>m<EFBFBD>D<><16>j<EFBFBD>M<EFBFBD><15>i<EFBFBD>L<EFBFBD>&8<>(<28>%C<>$D<>D<>L<EFBFBD><19> &<26> <1C>)<29>)<29>'<27>2<> <0C><16>q<EFBFBD><18>{<7B>A<EFBFBD>i<EFBFBD>L<EFBFBD><<3C>$?<3F>@<40><11>*<2A> <0A><EFBFBD><1E><>{<1F><08>*<2A>5<> <15><14> <15><>`$.<2E>#;<3B>#;<3B>8<>#&<26>$<24>,<2C>,<2C>#6<>$(<28>O<EFBFBD>O<EFBFBD>C<EFBFBD>$8<>$(<28>$5<>$5<>$7<><01>8<><38>'$<24><<3C><1C>,<2C>,<2C><01>s<EFBFBD>!<21>C<EFBFBD>5<EFBFBD>\<5C>9<EFBFBD>E<> <20>-<2D>-<2D><11><03>1<EFBFBD>S<EFBFBD>E<EFBFBD>l<EFBFBD>;<3B><01><><<3C><>F"<22>/<2F>/<2F>,<2C><1A>d<EFBFBD>l<EFBFBD>l<EFBFBD>*<2A><1C><0F><0F><03>,<2C><1C>)<29>)<29>+<2B>A<EFBFBD>:<3A><19>K<EFBFBD>K<EFBFBD>)<29>)<29>*F<>G<><1C><08><08>[<5B><08>9<>A<EFBFBD><41>MsV<00>-S<00>T+<00>/9S"<00>.$U/<00>1)W(<04>S<03>S<03>"AT(<03>'T(<03>+ U,<03>4-U'<03>'U,<03>/AW%<03>4.W%c<00><><00>|jjd<01>|jr<|jj<00>|jj <00>d|_yy)z<>Stop Socket.IO background tasks.
This method stops background activity initiated by the Socket.IO
server. It must be called before shutting down the web server.
zSocket.IO is shutting downN)r<00>info<66>service_task_event<6E>set<65>service_task_handle<6C>join)rs r<00>shutdownzServer.shutdownTsQ<00><00> <0A> <0B> <0B><18><18>5<>6<> <0F> "<22> "<22> <10> #<23> #<23> '<27> '<27> )<29> <10> $<24> $<24> )<29> )<29> +<2B>'+<2B>D<EFBFBD> $<24> #rc<00>V<00>|jd|||<03><02>}|j<00>|S)aOStart 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 that represents the background task,
on which the ``join()`` methond can be invoked to wait for the task to
complete.
<20>thread)<03>targetr*<00>kwargs)<02>_async<6E>start)rr<>r*r<><00>ths r<00>start_background_taskzServer.start_background_task`s+<00><00>#<23>T<EFBFBD>[<5B>[<5B><18> "<22>&<26>t<EFBFBD>F<EFBFBD> K<><02>
<EFBFBD><08><08>
<EFBFBD><11> rc<00>,<00>|jd|<01>S)aSleep 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.
<20>sleep)r<>)r<00>secondss rr<>z Server.sleepss<00><00>$<24>t<EFBFBD>{<7B>{<7B>7<EFBFBD>#<23>G<EFBFBD>,<2C>,rc
<00><><00>|jr'd|_|j|j<00>|_|j <00>}t j ||<05>}||j|<tjtj||j||<03>t|jdz<00>t|j|jz<00>dz|j d<03><05>}|j#|<07>|j%<00>|j'd||d<01><05>}|<08>A|dur=|j|=|j(j+d<08>|j-|xsd<06>S|d k(r;|j/||<02>}|j0r||jvr |j|=|Sd|_d} |j4r]t7|j4t8<00>r d
|j;||j4<00>fg} n#d
|j;||j4d d d <0A><03>fg} |j=|j?<00>| |<04><0E>S#t@jB$r|jE<00>cYSwxYw)z#Handle a client connection request.Fi<46>)r<00>upgrades<65> pingTimeout<75> pingInterval<61>
maxPayload<EFBFBD>connect)<01> run_asyncNTzApplication rejected connectionrIz
Set-Cookie<69>/<2F>Lax)<03>name<6D>path<74>SameSite)r=rJ)#<23>start_service_taskr<6B><00> _service_taskr<6B><00> generate_idr<00>Socketr5rr <00>OPEN<45> _upgradesr[<00> ping_timeout<75> ping_interval<61>ping_interval_grace_period<6F>max_http_buffer_sizer<00> schedule_ping<6E>_trigger_eventrr<00> _unauthorizedr`re<00> connected<65>cookierari<00>_generate_sid_cookierc<00>pollr<00>
QueueEmptyrV)
rrrrsrBrJr<00>sr<00>retr=s
rr_zServer._handle_connect}s:<00><00> <10> "<22> "<22>&+<2B>D<EFBFBD> #<23>'+<2B>'A<>'A<><14>"<22>"<22>($<24>D<EFBFBD> $<24><13><1E><1E> <20><03> <12>M<EFBFBD>M<EFBFBD>$<24><03> $<24><01><1D><04> <0C> <0C>S<EFBFBD><19><14>m<EFBFBD>m<EFBFBD>F<EFBFBD>K<EFBFBD>K<EFBFBD><16><1C><0E><0E>s<EFBFBD>I<EFBFBD>6<><1E>t<EFBFBD>0<>0<>4<EFBFBD>7<>8<><1F><14>"<22>"<22>T<EFBFBD>%D<>%D<>D<>F<01>HL<48>M<01><1E>3<>3<> *
<EFBFBD> <0B><03>
<EFBFBD><06><06>s<EFBFBD> <0B> <09><0F><0F><19> <13>!<21>!<21>)<29>S<EFBFBD>'<27>U<EFBFBD>!<21>K<><03> <0E>?<3F>s<EFBFBD>$<24><EFBFBD><14> <0C> <0C>S<EFBFBD>!<21> <10>K<EFBFBD>K<EFBFBD> <1F> <1F> A<> B<><17>%<25>%<25>c<EFBFBD>k<EFBFBD>T<EFBFBD>2<> 2<> <14> <0B> #<23><13>&<26>&<26>w<EFBFBD><0E>?<3F>C<EFBFBD><10>x<EFBFBD>x<EFBFBD>C<EFBFBD>4<EFBFBD><<3C><<3C>/<2F><18>L<EFBFBD>L<EFBFBD><13>%<25><16>J<EFBFBD><1E>A<EFBFBD>K<EFBFBD><1A>G<EFBFBD><13>{<7B>{<7B><1D>d<EFBFBD>k<EFBFBD>k<EFBFBD>4<EFBFBD>0<>$<24><1C>1<>1<>#<23>t<EFBFBD>{<7B>{<7B>C<> <16><17>G<EFBFBD> %<25><1C>1<>1<>#<23>$(<28>K<EFBFBD>K<EFBFBD><13>%<25>8<1A><1B> <16><17>G<EFBFBD>  +<2B><1B>x<EFBFBD>x<EFBFBD><01><06><06><08>'<27>,7<> <20>9<>9<><39><1D>(<28>(<28> +<2B><1B>(<28>(<28>*<2A>*<2A> +<2B>s<00>!H4<00>4#I<03>Ic<00><><00><00><01><02>|jdd<02>}<04><01>jvr!<21><02><01>fd<03>}|r<11>j|<05>S|<05>Sy)zInvoke an event handler.r<>Fc<00><><00><03> <00>j<00><00><00>S#t$r/<00>dk(r(t<00><00>dk(r<00>j<00><00>d<00>cYS<00>wxYw#<00>jj <00>dz<00><00>dk(rYyYyxYw)Nr9<00>rz handler errorr<72>F)<05>handlers<72> TypeErrorrkrrg)r*<00>eventrs<00><><EFBFBD>r<00> run_handlerz*Server._trigger_event.<locals>.run_handler<65>s<><00><><00>%<25> "<22>3<>t<EFBFBD>}<7D>}<7D>U<EFBFBD>3<>T<EFBFBD>:<3A>:<3A><>$<24>"<22> <20>L<EFBFBD>0<> #<23>D<EFBFBD> <09>Q<EFBFBD><0E>$8<>4<EFBFBD>=<3D>=<3D><15>#7<><04>Q<EFBFBD><07>#@<40>@<40>!<21>"<22><>%<25><18>K<EFBFBD>K<EFBFBD>)<29>)<29>%<25>2B<32>*B<>C<><1C> <09>)<29> %<25>*<2A>s!<00><00>4A<03>
A<00> A<03>A<00>%A:N)<03>popr<70>r<>)rr<>r*r<>r<>r<>s``` rr<>zServer._trigger_event<6E>sG<00><><00><1A>J<EFBFBD>J<EFBFBD>{<7B>E<EFBFBD>2<> <09> <10>D<EFBFBD>M<EFBFBD>M<EFBFBD> !<21> %<25>&<19><1B>1<>1<>+<2B>><3E>><3E>"<22>}<7D>$<24>/ "rc<00>X<00>|j<00>|_|jj<00><00>st|j<00>dk(r(|jj |j <00><02>ry<05>[t|j <00>t|j<00>z } |jj<00>j<00>D]i}|jr |j|j=n|js|j<00>|jj |<01><02>s<01>at<00><00> |jj<00>s<02><01>yy#t$rY<00>RwxYw#t tf$r|j"j%d<03>Yy|j"j'd<04>Y<00>wxYw)z;Monitor connected clients and clean up those that time out.r)<01>timeoutzservice task canceledzservice task exceptionN)<14> create_eventr<74><00>is_setrkr5<00>waitr<74><00>floatr6r7rerr<00>closing<6E>check_ping_timeout<75>KeyboardInterrupt<70>
SystemExitrr<>rg)r<00>sleep_intervalr<6C>s rr<>zServer._service_task<73>s]<00><00>"&<26>"3<>"3<>"5<><04><1F><16>)<29>)<29>0<>0<>2<><12>4<EFBFBD><<3C><<3C> <20>A<EFBFBD>%<25><17>*<2A>*<2A>/<2F>/<2F><04>8I<38>8I<38>/<2F>J<><19><18>#<23>4<EFBFBD>#4<>#4<>5<><03>D<EFBFBD>L<EFBFBD>L<EFBFBD>8I<38>I<>N<EFBFBD> @<01><1D><1C><1C>*<2A>*<2A>,<2C>3<>3<>5<>A<EFBFBD><18>x<EFBFBD>x<EFBFBD>!<21> $<24> <0C> <0C>Q<EFBFBD>U<EFBFBD>U<EFBFBD> 3<>
<1F>Y<EFBFBD>Y<EFBFBD><19>,<2C>,<2C>.<2E><1B>.<2E>.<2E>3<>3<>N<EFBFBD>3<>K<>/<2F>1<>1<>6<><17>)<29>)<29>0<>0<>2<>2<><32> (<28>!<21>!<21>!<21><><1F> 1<>2<> <16><14> <0B> <0B> <20> <20>!8<>9<><15> @<01><14> <0B> <0B>%<25>%<25>&><3E>?<3F>s<<00>7E<00>E<02>,9E<00>& E<00> E<05>E<00>E<05>E<00>*F)<03> F)r$)r)r,r-r.<00>__doc__rr rrrr9r<>r<>r<>r<>r_r<>r<>r0rrr r sU<00><00>E<08>LH<01> <19> <1E>!<21>#3<>J<1E>*W<1F>r
,<2C><12>&-<2D>%)<29><+<2B>|%<25>8 @rr ) <0B>loggingrWrArrrr<00> getLogger<65>default_logger<65>
BaseServerr r0rr<00><module>r<>s@<00><01><0E> <0A><19><18><14><14>"<22><17>"<22>"<22>#4<>5<><0E>k@<01>[<5B> #<23> #<23>k@r