Files
Trancribe/venv/lib/python3.12/site-packages/websockets/__pycache__/server.cpython-312.pyc

269 lines
23 KiB
Plaintext
Raw Normal View History

<EFBFBD>
$n!jU<00> <01><><00>ddlmZddlZddlZddlZddlZddlZddlZddl m
Z
m Z ddl m Z mZmZddlmZmZddlmZmZmZmZmZmZmZddlmZmZdd lmZm Z m!Z!m"Z"m#Z#dd
l$m%Z%m&Z&dd l'm(Z(dd l)m*Z*m+Z+m,Z,m-Z-m.Z.dd l m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5ddl6m7Z7dgZ8Gd<10>de-<2D>Z9Gd<11>de9<65>Z:e(e;<3B>dddddd<14><05><15>y)<16>)<01> annotationsN)<02> Generator<6F>Sequence)<03>Any<6E>Callable<6C>cast<73>)<02>Headers<72>MultipleValuesError)<07>InvalidHandshake<6B> InvalidHeader<65>InvalidHeaderValue<75>InvalidMessage<67> InvalidOrigin<69>InvalidUpgrade<64>NegotiationError)<02> Extension<6F>ServerExtensionFactory)<05>build_extension<6F>parse_connection<6F>parse_extension<6F>parse_subprotocol<6F> parse_upgrade)<02>Request<73>Response)<01> lazy_import)<05>
CONNECTING<EFBFBD>OPEN<45>SERVER<45>Protocol<6F>State)<07>ConnectionOption<6F>ExtensionHeader<65>
LoggerLike<EFBFBD>Origin<69>
StatusLike<EFBFBD> Subprotocol<6F>UpgradeProtocol)<01>
accept_key<EFBFBD>ServerProtocolc<01><><00><00>eZdZdZddddeddd<04> d<0F>fd<05>Zdd<06>Z dd<07>Zdd<08>Z dd <09>Z dd
<EFBFBD>Z
dd <0B>Z dd <0C>Z dd <0A>Z d<18>fd<0E> Z<0E>xZS)r*a<>
Sans-I/O implementation of a WebSocket server connection.
Args:
origins: Acceptable values of the ``Origin`` header. Values can be
:class:`str` to test for an exact match or regular expressions
compiled by :func:`re.compile` to test against a pattern. Include
:obj:`None` in the list if the lack of an origin is acceptable.
This is useful for defending against Cross-Site WebSocket
Hijacking attacks.
extensions: List of supported extensions, in order in which they
should be tried.
subprotocols: List of supported subprotocols, in order of decreasing
preference.
select_subprotocol: Callback for selecting a subprotocol among
those supported by the client and the server. It has the same
signature as the :meth:`select_subprotocol` method, including a
:class:`ServerProtocol` instance as first argument.
state: Initial state of the WebSocket connection.
max_size: Maximum size of incoming messages in bytes.
:obj:`None` disables the limit. You may pass a ``(max_message_size,
max_fragment_size)`` tuple to set different limits for messages and
fragments when you expect long messages sent in short fragments.
logger: Logger for this connection;
defaults to ``logging.getLogger("websockets.server")``;
see the :doc:`logging guide <../../topics/logging>` for details.
Ni)<07>origins<6E>
extensions<EFBFBD> subprotocols<6C>select_subprotocol<6F>state<74>max_size<7A>loggerc<01><><00><01>t<00>|<00>t|||<07><01>||_||_||_|<04>(t |d|j||j<00><00>yy)N)<04>sider0r1r2r/) <09>super<65>__init__rr,<00>available_extensions<6E>available_subprotocols<6C>setattr<74>__get__<5F> __class__) <09>selfr,r-r.r/r0r1r2r;s <20><>S/home/jean/linux-transcriber/venv/lib/python3.12/site-packages/websockets/server.pyr6zServerProtocol.__init__Nsk<00><><00>" <0E><07><18><17><17><1D><19> <19>
<EFBFBD> <1F><04> <0C>$.<2E><04>!<21>&2<><04>#<23> <1D> )<29> <14><14>$<24>"<22>*<2A>*<2A>4<EFBFBD><14><1E><1E>@<40> <0E> *<2A>c<01><00> |j|<01>\}}}t+<00>} t,j.j1d<02><0F>| d<d | d
<d
| d<|| d<|<03>|| d<|<04>|| d<t3dd| <09>S#t$ro}||_||_|jr|j
j dd<02><03>|j tjjd|<05>d<05><03>cYd}~Sd}~wt$r<>}||_||_|jr|j
j dd<02><03>|j tjjd|<05>d<08><03>}d |jd
<|cYd}~Sd}~wt$r<>}||_||_|jr|j
j d d<02><03>tt|<05>}|<07>}|j <00>!|j }|d |<07><00>z }|j <00><01>!|j tjj"d|<08>d<05><03>cYd}~Sd}~wt$$r_}||_||_|j
j'd d<02><03>|j tjj(d<0E>cYd}~Sd}~wwxYw)a<>
Create a handshake response to accept the connection.
If the handshake request is valid and the handshake successful,
:meth:`accept` returns an HTTP response with status code 101.
Else, it returns an HTTP response with another status code. This rejects
the connection, like :meth:`reject` would.
You must send the handshake response with :meth:`send_response`.
You may modify the response before sending it, typically by adding HTTP
headers.
Args:
request: WebSocket handshake request received from the client.
Returns:
WebSocket handshake response or HTTP response to send to the client.
z! invalid originT)<01>exc_infoz'Failed to open a WebSocket connection: z.
Nz! invalid upgradez^.
You cannot access a WebSocket server directly with a browser. You need a WebSocket client.
<EFBFBD> websocket<65>Upgradez! invalid handshakez; zopening handshake failedzLFailed to open a WebSocket connection.
See server log for more information.
<EFBFBD><01>usegmt<6D>Date<74>
ConnectionzSec-WebSocket-Accept<70>Sec-WebSocket-Extensions<6E>Sec-WebSocket-Protocol<6F>ezSwitching Protocols)<1A>process_requestr<00>
_exception<EFBFBD> handshake_exc<78>debugr2<00>reject<63>http<74>
HTTPStatus<EFBFBD> FORBIDDENr<00>UPGRADE_REQUIRED<45>headersr r<00> BaseException<6F> __cause__<5F> BAD_REQUEST<53> Exception<6F>error<6F>INTERNAL_SERVER_ERRORr
<00>email<69>utils<6C>
formatdater)
r<<00>request<73> accept_header<65>extensions_header<65>protocol_header<65>exc<78>response<73> exc_chain<69>exc_strrSs
r=<00>acceptzServerProtocol.acceptqs<><00><00>,9 <0E>
<15>$<24>$<24>W<EFBFBD>-<2D>  <0E><1D>!<21><1F>n<1A>)<29><07><1F>+<2B>+<2B>0<>0<><04>0<>=<3D><07><06><0F>(<28><07> <09><1A> )<29><07> <0C><1D>*7<><07>&<26>'<27> <1C> (<28>2C<32>G<EFBFBD>.<2E> /<2F> <1A> &<26>0?<3F>G<EFBFBD>,<2C> -<2D><17><03>2<>G<EFBFBD><<3C><<3C><>}<1D> <0E>!$<24>G<EFBFBD> <1E>!$<24>D<EFBFBD> <1E><13>z<EFBFBD>z<EFBFBD><14> <0B> <0B>!<21>!<21>"4<>t<EFBFBD>!<21>D<><17>;<3B>;<3B><14><0F><0F>)<29>)<29>9<>#<23><15>c<EFBFBD>B<><0E> <0E><><1E> <1C>!$<24>G<EFBFBD> <1E>!$<24>D<EFBFBD> <1E><13>z<EFBFBD>z<EFBFBD><14> <0B> <0B>!<21>!<21>"5<><04>!<21>E<><1B>{<7B>{<7B><14><0F><0F>0<>0<>=<3D>c<EFBFBD>U<EFBFBD>CE<01>F<01><0E>H<EFBFBD>+6<>H<EFBFBD> <1C> <1C>Y<EFBFBD> '<27><1B>O<EFBFBD><4F><1F> <0E>!$<24>G<EFBFBD> <1E>!$<24>D<EFBFBD> <1E><13>z<EFBFBD>z<EFBFBD><14> <0B> <0B>!<21>!<21>"7<>$<24>!<21>G<><1C>]<5D>C<EFBFBD>0<>I<EFBFBD>"<22> <0B>G<EFBFBD><1B>%<25>%<25>1<>%<25>/<2F>/<2F> <09><17>R<EFBFBD> <09>{<7B>+<2B>+<2B><07><1C>%<25>%<25>1<><18>;<3B>;<3B><14><0F><0F>+<2B>+<2B>9<>'<27><19>#<23>F<><0E> <0E><><19> <0E>"%<25>G<EFBFBD> <1E>!$<24>D<EFBFBD> <1E> <10>K<EFBFBD>K<EFBFBD> <1D> <1D>8<>4<EFBFBD> <1D> H<><17>;<3B>;<3B><14><0F><0F>5<>5<>=<3D><0E> <0E><> <0E>s]<00>A.<00>. J <03>7A$C!<03>J <03>! J <03>-A5E(<03>"J <03>( J <03>4A6H<03>+-H<03>J <03> J <03>*AJ<03>>J <03>J c<01>^<00>|j}t|jd<01>D<00>cgc] }t|<03><00><02>c}g<00>}t d<02>|D<00><00>s#t d|rdj |<04><00><00>d<04><00>t|jd<05>D<00>cgc] }t|<03><00><02>c}g<00>}t|<05>dk(r|dj<00>dk(s#t d|rdj |<05><00><00>d<04><00> |d } tj|j<00>d <0B> <0C>}t|<07>d k7r t%d |<06><00>t'|<06>} |d}
|
dk7r t%d|
<EFBFBD><00>|j)|<02>|_|j-|<02>\} |_|j1|<02>x} |_| | | fScc}wcc}w#t$r td <09>d<04>t$rtd d
<EFBFBD>d<04>wxYw#t j"$r}t%d |<06>|<08>d}~wwxYw#t$r td<0E>d<04>t$rtdd
<EFBFBD>d<04>wxYw)a
Check a handshake request and negotiate extensions and subprotocol.
This function doesn't verify that the request is an HTTP/1.1 or higher
GET request and doesn't check the ``Host`` header. These controls are
usually performed earlier in the HTTP request handling code. They're
the responsibility of the caller.
Args:
request: WebSocket handshake request received from the client.
Returns:
``Sec-WebSocket-Accept``, ``Sec-WebSocket-Extensions``, and
``Sec-WebSocket-Protocol`` headers for the handshake response.
Raises:
InvalidHandshake: If the handshake request is invalid;
then the server must return 400 Bad Request error.
rFc3<01>BK<00>|]}|j<00>dk(<00><01><00>y<01>w)<02>upgradeN)<01>lower)<02>.0<EFBFBD>values r=<00> <genexpr>z1ServerProtocol.process_request.<locals>.<genexpr><3E>s<00><00><><00>F<>%<25>5<EFBFBD>;<3B>;<3B>=<3D>I<EFBFBD>-<2D>F<>s<00><01>, NrBr rrAzSec-WebSocket-Key<65>multiple valuesT)<01>validate<74>zSec-WebSocket-Version<6F>13)rS<00>sum<75>get_allr<00>anyr<00>joinr<00>lenri<00>KeyErrorr r <00>base64<36> b64decode<64>encode<64>binascii<69>Errorrr)<00>process_origin<69>origin<69>process_extensionsr-<00>process_subprotocol<6F> subprotocol) r<r]rSrk<00>
connectionrh<00>key<65>raw_keyrar^<00>versionr_r`s r=rJzServerProtocol.process_request<73>sR<00><00>0<1A>/<2F>/<2F><07>-0<>29<32>/<2F>/<2F>,<2C>2O<32> P<><15> <1D>e<EFBFBD> $<24> P<>RT<52>.
<EFBFBD>
<EFBFBD><13>F<>:<3A>F<>F<> <20><1C>z<EFBFBD>d<EFBFBD>i<EFBFBD>i<EFBFBD>
<EFBFBD>3<><0E> <0E>GK<47><0E> <0E>*-<2D>/6<><EFBFBD><EFBFBD>y<EFBFBD>/I<> J<>e<EFBFBD>]<5D>5<EFBFBD> !<21> J<>B<EFBFBD>*
<EFBFBD><07> <14>G<EFBFBD> <0C><01>!<21>g<EFBFBD>a<EFBFBD>j<EFBFBD>&6<>&6<>&8<>K<EFBFBD>&G<> <20><19>'<27>D<EFBFBD>I<EFBFBD>I<EFBFBD>g<EFBFBD>,><3E>T<> T<>t<EFBFBD>T<> T<> R<01><19>-<2D>.<2E>C<EFBFBD>
 H<01><1C>&<26>&<26>s<EFBFBD>z<EFBFBD>z<EFBFBD>|<7C>d<EFBFBD>C<>G<EFBFBD> <0F>w<EFBFBD><<3C>2<EFBFBD> <1D>$<24>%8<>#<23>><3E> ><3E>"<22>3<EFBFBD><0F> <0A> V<01><1D>5<>6<>G<EFBFBD>
<13>d<EFBFBD>?<3F>$<24>%<<3C>g<EFBFBD>F<> F<><1A>)<29>)<29>'<27>2<><04> <0B>-1<>-D<>-D<>W<EFBFBD>-M<>*<2A><19>4<EFBFBD>?<3F>-1<>-E<>-E<>g<EFBFBD>-N<>N<><0F>$<24>*<2A><1D>0<>/<2F>B<>B<><42>W Q<01><> K<01><><18> ?<3F><1F> 3<>4<>$<24> ><3E>"<22> R<01><1F> 3<>5F<35>G<>T<EFBFBD> Q<> R<01><><18>~<7E>~<7E> H<01>$<24>%8<>#<23>><3E>C<EFBFBD> G<><47> H<01><><18> C<01><1F> 7<>8<>d<EFBFBD> B<>"<22> V<01><1F> 7<>9J<39>K<>QU<51> U<> V<01>s;<00>F!<08> F&<08>.F+<00>4%G<00>?H<00>++G<03>G><03>, G9<03>9G><03>+H,c<01>@<00> |jd<01>}|<02>tt|<02>}|j
<00>S|j
D]9}||k(s0t |tj<00>s<01>#|<02><01>&|j|<02><00><01>8|St|<02><00>|S#t$rtdd<02>d<03>wxYw)aG
Handle the Origin HTTP request header.
Args:
headers: WebSocket handshake request headers.
Returns:
origin, if it is acceptable.
Raises:
InvalidHandshake: If the Origin header is invalid.
InvalidOrigin: If the origin isn't acceptable.
r%rnN) <0B>getr r rr%r,<00>
isinstance<EFBFBD>re<72>Pattern<72> fullmatchr)r<rSr~<00>origin_or_regexs r=r}zServerProtocol.process_origins<><00><00>" G<01><1C>[<5B>[<5B><18>*<2A>F<EFBFBD> <12> <1D><19>&<26>&<26>)<29>F<EFBFBD> <0F><<3C><<3C> #<23>#'<27><<3C><<3C> ,<2C><0F>"<22>f<EFBFBD>,<2C><1E><EFBFBD><02>
<EFBFBD>
<EFBFBD>;<3B><1E>*<2A>'<27>1<>1<>&<26>9<>E<><19><16> <0A> ,<2C>$<24>F<EFBFBD>+<2B>+<2B><15> <0A><>#<23> G<01><1F><08>*;<3B><<3C>$<24> F<> G<01>s <00>B<00>Bc<01><><00>d}g}g}|jd<02>}|r<>|jr<>t|D<00>cgc] }t|<06><00><02>c}g<00>}|D]a\}} |jD]M}
|
j|k7r<01> |
j | |<04>\} } |j|| f<02>|j| <0C><00>a<00>c|r t|<03>}||fScc}w#t $rY<00>swxYw)a<>
Handle the Sec-WebSocket-Extensions HTTP request header.
Accept or reject each extension proposed in the client request.
Negotiate parameters for accepted extensions.
Per :rfc:`6455`, negotiation rules are defined by the specification of
each extension.
To provide this level of flexibility, for each extension proposed by
the client, we check for a match with each extension available in the
server configuration. If no match is found, the extension is ignored.
If several variants of the same extension are proposed by the client,
it may be accepted several times, which won't make sense in general.
Extensions must implement their own requirements. For this purpose,
the list of previously accepted extensions is provided.
This process doesn't allow the server to reorder extensions. It can
only select a subset of the extensions proposed by the client.
Other requirements, for example related to mandatory extensions or the
order of extensions, may be implemented by overriding this method.
Args:
headers: WebSocket handshake request headers.
Returns:
``Sec-WebSocket-Extensions`` HTTP response header and list of
accepted extensions.
Raises:
InvalidHandshake: If the Sec-WebSocket-Extensions header is invalid.
NrG) rsr7rrr<00>name<6D>process_request_paramsr<00>appendr) r<rS<00>response_header_value<75>extension_headers<72>accepted_extensions<6E> header_values<65> header_value<75>parsed_header_valuesr<73><00>request_params<6D> ext_factory<72>response_params<6D> extensions r=rz!ServerProtocol.process_extensions8s <00><00>N-1<><1D>35<33><19>/1<><1B><1F><0F><0F>(B<>C<> <0A> <18>T<EFBFBD>6<>6<>:=<3D>CP<43>Q<><<3C><1F><1C>.<2E>Q<>SU<53>;<0E> <20>)=<3D> <1A>$<24><04>n<EFBFBD>#'<27>#<<3C>#<<3C><1A>K<EFBFBD>"<22>'<27>'<27>4<EFBFBD>/<2F> <20>!<21>5@<40>5W<35>5W<35>*<2A>,?<3F>6<1A>2<><0F><19>&<26>,<2C>,<2C>d<EFBFBD>O<EFBFBD>-D<>E<>'<27>.<2E>.<2E>y<EFBFBD>9<><1A>%<1A> <1A>2 <1D>$3<>4E<34>$F<> !<21>$<24>&9<>9<>9<><39>?R<01><>,<2C>!<21> <20>!<21>s<00>C<08>1C<04> C<07>Cc<01><><00>t|jd<01>D<00>cgc] }t|<02><00><02>c}g<00>}|j|<03>Scc}w)a<>
Handle the Sec-WebSocket-Protocol HTTP request header.
Args:
headers: WebSocket handshake request headers.
Returns:
Subprotocol, if one was selected; this is also the value of the
``Sec-WebSocket-Protocol`` response header.
Raises:
InvalidHandshake: If the Sec-WebSocket-Subprotocol header is invalid.
rH)rrrsrr/)r<rSr<>r.s r=r<>z"ServerProtocol.process_subprotocol<6F>sR<00><00>/2<>%,<2C>O<EFBFBD>O<EFBFBD>4L<34>$M<> <0E> <20>"<22>,<2C>/<2F> <0E> <0F> /
<EFBFBD> <0C><14>&<26>&<26>|<7C>4<>4<><34>  s<00>Ac<01><><00>|jsy|s td<02><00>t|<01>}|jD]
}||vs<01>|cStddj|j<00>z<00><00>)aq
Pick a subprotocol among those offered by the client.
If several subprotocols are supported by both the client and the server,
pick the first one in the list declared the server.
If the server doesn't support any subprotocols, continue without a
subprotocol, regardless of what the client offers.
If the server supports at least one subprotocol and the client doesn't
offer any, abort the handshake with an HTTP 400 error.
You provide a ``select_subprotocol`` argument to :class:`ServerProtocol`
to override this logic. For example, you could accept the connection
even if client doesn't offer a subprotocol, rather than reject it.
Here's how to negotiate the ``chat`` subprotocol if the client supports
it and continue without a subprotocol otherwise::
def select_subprotocol(protocol, subprotocols):
if "chat" in subprotocols:
return "chat"
Args:
subprotocols: List of subprotocols offered by the client.
Returns:
Selected subprotocol, if a common subprotocol was found.
:obj:`None` to continue without a subprotocol.
Raises:
NegotiationError: Custom implementations may raise this exception
to abort the handshake with an HTTP 400 error.
Nzmissing subprotocolz%invalid subprotocol; expected one of rm)r8r<00>setru)r<r.<00>proposed_subprotocolsr<73>s r=r/z!ServerProtocol.select_subprotocol<6F>s|<00><00>R<14>*<2A>*<2A><17><1C>"<22>#8<>9<> 9<>!$<24>L<EFBFBD> 1<><1D><1F>6<>6<> #<23>K<EFBFBD><1A>3<>3<>"<22>"<22> #<23>
<1F> 3<><12>i<EFBFBD>i<EFBFBD><04>3<>3<>4<> 5<>
<EFBFBD>
r>c
<01><00>tj|<01>}|j<00>}tdtj
j d<02><03>fddtt|<03><00>fdg<04>}t|j|j||<03>S)a'
Create a handshake response to reject the connection.
A short plain text response is the best fallback when failing to
establish a WebSocket connection.
You must send the handshake response with :meth:`send_response`.
You may modify the response before sending it, for example by changing
HTTP headers.
Args:
status: HTTP status code.
text: HTTP response body; it will be encoded to UTF-8.
Returns:
HTTP response to send to the client.
rETrC)rF<00>closezContent-Length)z Content-Typeztext/plain; charset=utf-8) rOrPrzr
rZr[r\<00>strrvrrk<00>phrase)r<<00>status<75>text<78>bodyrSs r=rNzServerProtocol.reject<63>sw<00><00>*<16><1F><1F><16>(<28><06><13>{<7B>{<7B>}<7D><04><19><17><15><1B><1B>/<2F>/<2F>t<EFBFBD>/<2F><<3C>=<3D>'<27>!<21>3<EFBFBD>s<EFBFBD>4<EFBFBD>y<EFBFBD>><3E>2<>=<3D>  <0E>
<EFBFBD><07><18><06> <0C> <0C>f<EFBFBD>m<EFBFBD>m<EFBFBD>W<EFBFBD>d<EFBFBD>C<>Cr>c<01>6<00>|jr<>|j|j}}|jjd||<03>|jj <00>D]"\}}|jjd||<05><00>$|j r/|jjdt|j <00><00>|jj|j<00><00>|jdk(r;|jtusJ<00>t|_ |jjd<05>y|jjd|j|j<00>|j<00>|j!<00>|_t%|j"<00>y)z<>
Send a handshake response to the client.
Args:
response: WebSocket handshake response event to send.
z> HTTP/1.1 %d %sz> %s: %sz> [body] (%d bytes)rIzconnection openzconnection rejected (%d %s)N)rM<00> status_code<64> reason_phraser2rS<00> raw_itemsr<73>rv<00>writesr<73><00> serializer0rr<00>info<66>send_eof<6F>discard<72>parser<65>next)r<rb<00>coder<65>r<>rks r=<00> send_responsezServerProtocol.send_response<73>s6<00><00> <10>:<3A>:<3A>#<23>/<2F>/<2F><18>1G<31>1G<31>&<26>D<EFBFBD> <10>K<EFBFBD>K<EFBFBD> <1D> <1D>0<>$<24><06> ?<3F>&<26>.<2E>.<2E>8<>8<>:<3A> :<3A>
<EFBFBD><03>U<EFBFBD><14> <0B> <0B>!<21>!<21>*<2A>c<EFBFBD>5<EFBFBD>9<> :<3A><17>}<7D>}<7D><14> <0B> <0B>!<21>!<21>"7<><13>X<EFBFBD>]<5D>]<5D>9K<39>L<> <0C> <0B> <0B><1A><1A>8<EFBFBD>-<2D>-<2D>/<2F>0<> <13> <1F> <1F>3<EFBFBD> &<26><17>:<3A>:<3A><1A>+<2B> +<2B>+<2B><1D>D<EFBFBD>J<EFBFBD> <10>K<EFBFBD>K<EFBFBD> <1C> <1C>.<2E> /<2F> <11>K<EFBFBD>K<EFBFBD> <1C> <1C>-<2D><18>$<24>$<24><18>&<26>&<26> <0E> <11>M<EFBFBD>M<EFBFBD>O<EFBFBD><1E>,<2C>,<2C>.<2E>D<EFBFBD>K<EFBFBD> <10><14><1B><1B> r>c#<01><><00>K<00>|jtur<> tj|jj
<00>Ed{<00><03><02>}|jre|jjdj <00>|j"j%<00>D]"\}}|jjd||<04><00>$|j&j)<01>t*<00>|<00> <00>Ed{<00><02><02>y7<00><>#t $rj}td<01>|_||j_ |j<00>|j<00>|_ t|j<00>d<00><03>Yd}~<02><01>d}~wwxYw7<00>}<7D>w)Nz$did not receive a valid HTTP requestz< GET %s HTTP/1.1z< %s: %s)r0rr<00>parse<73>reader<65> read_linerWrrLrUr<>r<>r<>r<>rMr2<00>pathrSr<><00>eventsr<73>r5)r<r]rar<>rkr;s <20>r=r<>zServerProtocol.parse s<00><><00><><00> <0F>:<3A>:<3A><1A> #<23> <16>%,<2C>]<5D>]<5D><18>K<EFBFBD>K<EFBFBD>)<29>)<29>&<12><12><07><14>z<EFBFBD>z<EFBFBD><14> <0B> <0B>!<21>!<21>"5<>w<EFBFBD>|<7C>|<7C>D<>")<29>/<2F>/<2F>";<3B>";<3B>"=<3D>><3E>J<EFBFBD>C<EFBFBD><15><18>K<EFBFBD>K<EFBFBD>%<25>%<25>j<EFBFBD>#<23>u<EFBFBD>=<3D>><3E> <11>K<EFBFBD>K<EFBFBD> <1E> <1E>w<EFBFBD> '<27><18>7<EFBFBD>=<3D>?<3F>"<22>"<22>)<12><><1D> <16>%3<>:<3A>&<12><04>"<22>03<30><04>"<22>"<22>,<2C><14> <0A> <0A><0F>"<22>l<EFBFBD>l<EFBFBD>n<EFBFBD><04> <0B><14>T<EFBFBD>[<5B>[<5B>!<21><15><05><> <16><>" #<23>sN<00>E%<01>,C-<00>C+<04>C-<00>BE%<01>%E#<04>&E%<01>+C-<00>- E <03>6AE<03>E%<01>E <03> E%)r,z0Sequence[Origin | re.Pattern[str] | None] | Noner-z'Sequence[ServerExtensionFactory] | Noner.zSequence[Subprotocol] | Noner/zLCallable[[ServerProtocol, Sequence[Subprotocol]], Subprotocol | None] | Noner0r!r1z*int | None | tuple[int | None, int | None]r2zLoggerLike | None<6E>return<72>None)r]rr<>r)r]rr<>z"tuple[str, str | None, str | None])rSr
r<>z Origin | None)rSr
r<>z"tuple[str | None, list[Extension]])rSr
r<><00>Subprotocol | None)r.zSequence[Subprotocol]r<>r<>)r<>r&r<>r<>r<>r)rbrr<>r<>)r<>zGenerator[None])<10>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rr6rerJr}rr<>r/rNr<>r<><00> __classcell__<5F>r;s@r=r*r*0s<><00><><00><08>@EI<01>>B<>59<35> <11>!<21>?D<>$(<28>!<0E>B<01>!<0E><<3C> !<0E>
3<> !<0E> <13>!<0E><15>!<0E>=<3D>!<0E>"<22>!<0E>
<0E>!!<0E>FZ=<3D>xFC<01><18>FC<01>
,<2C>FC<01>P!<16>FO:<3A><18>O:<3A>
,<2C>O:<3A>b5<>0:
<EFBFBD>+<2B>:
<EFBFBD>
<1C>:
<EFBFBD>xD<01>B <1E>D#<23>#r>c<01> <00><00>eZdZd<02>fd<01> Z<03>xZS)<03>ServerConnectionc<01>X<00><01>tjdt<00>t<00>|<00>|i|<02><01>y)Nz.ServerConnection was renamed to ServerProtocol)<05>warnings<67>warn<72>DeprecationWarningr5r6)r<<00>args<67>kwargsr;s <20>r=r6zServerConnection.__init__;s)<00><><00><10> <0A> <0A> <<3C> <1E>
<EFBFBD> <0E><07><18>$<24>)<29>&<26>)r>)r<>rr<>rr<>r<>)r<>r<>r<>r6r<>r<>s@r=r<>r<>:s <00><><00>*<2A>*r>r<>z.legacy.server)<05>WebSocketServer<65>WebSocketServerProtocol<6F> broadcast<73>serve<76>
unix_serve)<01>deprecated_aliases)<<3C>
__future__rrxr{<00> email.utilsrZrOr<>r<><00>collections.abcrr<00>typingrrr<00>datastructuresr
r <00>
exceptionsr r rrrrrr-rrrSrrrrr<00>http11rr<00>importsr<00>protocolrrrr r!r"r#r$r%r&r'r(r[r)<00>__all__r*r<><00>globals<6C>r>r=<00><module>r<>s<><00><01>"<22> <0A><0F><12> <0B> <09><0F>/<2F>&<26>&<26>8<><02><02><02>:<3A><02><02>&<26> <20>?<3F>?<3F><02><02><02><1E> <1C>
<1C><07>G#<23>X<EFBFBD>G#<23>T*<2A>~<7E>*<2A> <0C> <0B>I<EFBFBD>,<2C>#3<>%<25>!<21>&<26> <06>
r>