ó
    ÖÁ“iU  ã            	      ó‚  • S SK Jr  S SKrS SKrS SKrS SKrS SKrS SKrS SK	J
r
Jr  S SKJrJrJr  SSKJrJr  SSKJrJrJrJrJrJrJr  SSKJrJr  SS	KJrJ r J!r!J"r"J#r#  SS
K$J%r%J&r&  SSK'J(r(  SSK)J*r*J+r+J,r,J-r-J.r.  SSKJ/r/J0r0J1r1J2r2J3r3J4r4J5r5  SSK6J7r7  S/r8 " S S\-5      r9 " S S\95      r:\(" \;" 5       SSSSSS.S9  g)é    )ÚannotationsN)Ú	GeneratorÚSequence)ÚAnyÚCallableÚcasté   )ÚHeadersÚMultipleValuesError)ÚInvalidHandshakeÚInvalidHeaderÚInvalidHeaderValueÚInvalidMessageÚInvalidOriginÚInvalidUpgradeÚNegotiationError)Ú	ExtensionÚServerExtensionFactory)Úbuild_extensionÚparse_connectionÚparse_extensionÚparse_subprotocolÚparse_upgrade)ÚRequestÚResponse)Úlazy_import)Ú
CONNECTINGÚOPENÚSERVERÚProtocolÚState)ÚConnectionOptionÚExtensionHeaderÚ
LoggerLikeÚOriginÚ
StatusLikeÚSubprotocolÚUpgradeProtocol)Ú
accept_keyÚServerProtocolc                  óÚ   ^ • \ rS rSrSrSSSS\SSS.               SU 4S jjjrSS jr    SS jrSS	 jr	    SS
 jr
SS jr    SS jrSS jrSS jrSU 4S jjrSrU =r$ )r*   é0   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   )ÚoriginsÚ
extensionsÚsubprotocolsÚselect_subprotocolÚstateÚmax_sizeÚloggerc               ó¦   >• [         TU ]  [        UUUS9  Xl        X l        X0l        Ub'  [        U SUR                  X R                  5      5        g g )N)Úsider1   r2   r3   r0   )	ÚsuperÚ__init__r   r-   Úavailable_extensionsÚavailable_subprotocolsÚsetattrÚ__get__Ú	__class__)	Úselfr-   r.   r/   r0   r1   r2   r3   r<   s	           €ÚN/home/mande/repo/quber/.venv/lib/python3.13/site-packages/websockets/server.pyr7   ÚServerProtocol.__init__N   sc   ø€ ô" 	‰ÑÜØØØð	 	ñ 	
ð ŒØ$.Ô!Ø&2Ô#ØÑ)ô ØØ$Ø"×*Ñ*¨4·±Ó@õð *ó    c                ó  •  U R                  U5      u  nnn[+        5       n	[,        R.                  R1                  SS9U	S'   S	U	S
'   S
U	S'   X)S'   Ub  X9S'   Ub  XIS'   [3        SSU	5      $ ! [         ao  nXQl        XPl        U R                  (       a  U R
                  R	                  SSS9  U R                  [        R                  R                  SU S35      s SnA$ SnAf[         a€  nXQl        XPl        U R                  (       a  U R
                  R	                  SSS9  U R                  [        R                  R                  SU S35      nS	UR                  S
'   Us SnA$ SnAf[         a²  nXQl        XPl        U R                  (       a  U R
                  R	                  SSS9  [        [        U5      nU nUR                   b#  UR                   nUSU 3-  nUR                   b  M#  U R                  [        R                  R"                  SU S35      s SnA$ SnAf[$         aZ  nXQl        XPl        U R
                  R'                  SSS9  U R                  [        R                  R(                  S5      s SnA$ SnAff = f)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)Ú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.
Ú	websocketÚUpgradez! invalid handshakez; zopening handshake failedzLFailed to open a WebSocket connection.
See server log for more information.
©ÚusegmtÚDateÚ
ConnectionzSec-WebSocket-AcceptúSec-WebSocket-ExtensionsúSec-WebSocket-Protocolée   zSwitching Protocols)Úprocess_requestr   Ú
_exceptionÚhandshake_excÚdebugr3   ÚrejectÚhttpÚ
HTTPStatusÚ	FORBIDDENr   ÚUPGRADE_REQUIREDÚheadersr   r   ÚBaseExceptionÚ	__cause__ÚBAD_REQUESTÚ	ExceptionÚerrorÚINTERNAL_SERVER_ERRORr
   ÚemailÚutilsÚ
formatdater   )
r=   ÚrequestÚaccept_headerÚextensions_headerÚprotocol_headerÚexcÚresponseÚ	exc_chainÚexc_strrU   s
             r>   ÚacceptÚServerProtocol.acceptq   sv  € ð,9	ð
 ×$Ñ$ WÓ-ñ	ØØ!Øôn “)ˆÜŸ+™+×0Ñ0¸Ð0Ð=ˆ�‰Ø(ˆ�	ÑØ )ˆ�ÑØ*7Ð&Ñ'ØÑ(Ø2CÐ.Ñ/ØÑ&Ø0?Ð,Ñ-Ü˜Ð2°GÓ<Ð<øô} ó 	Ø!$ÔØ!$ÔØ�z�zØ—‘×!Ñ!Ð"4¸tÐ!ÑDØ—;‘;Ü—‘×)Ñ)Ø9¸#¸¸cÐBóõ ûô ó 	Ø!$ÔØ!$ÔØ�z�zØ—‘×!Ñ!Ð"5ÀÐ!ÑEØ—{‘{Ü—‘×0Ñ0à=¸c¸Uð CEð FóˆHð +6ˆH×Ñ˜YÑ'Ø�OûÜó 	Ø!$ÔØ!$ÔØ�z�zØ—‘×!Ñ!Ð"7À$Ð!ÑGÜœ]¨CÓ0ˆIØ"˜ˆGØ×%Ñ%Ñ1Ø%×/Ñ/�	Ø˜R 	˜{Ð+Ñ+�ð ×%Ñ%Ó1ð —;‘;Ü—‘×+Ñ+Ø9¸'¸À#ÐFóõ ûô ó 	ð "%ÔØ!$ÔØ�K‰K×ÑÐ8À4ÐÑHØ—;‘;Ü—‘×5Ñ5ð=óõ ûð	ús]   ‚A* Á*
JÁ4A$CÃJÃJÃ+A5E&Å JÅ&JÅ3A8H Ç--H ÈJÈ JÈ-AJÉ<JÊJc                ó�  • UR                   n[        UR                  S5       Vs/ s H  n[        U5      PM     sn/ 5      n[	        S U 5       5      (       d(  [        SU(       a  SR                  U5      5      eS5      e[        UR                  S5       Vs/ s H  n[        U5      PM     sn/ 5      n[        U5      S:X  a  US   R                  5       S:X  d(  [        SU(       a  SR                  U5      5      eS5      e US	   n [        R                  " UR                  5       SS9n[        U5      S:w  a  [%        S	U5      e['        U5      n	 US   n
U
S:w  a  [%        SU
5      eU R)                  U5      U l        U R-                  U5      u  o°l        U R1                  U5      =oÀl        X›U4$ s  snf s  snf ! [         a    [        S	5      Se[         a    [        S	S
5      Sef = f! [         R"                   a  n[%        S	U5      UeSnAff = f! [         a    [        S5      Se[         a    [        SS
5      Sef = f)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.

rH   c              3  óF   #   • U  H  oR                  5       S :H  v •  M     g7f)ÚupgradeN)Úlower)Ú.0Úvalues     r>   Ú	<genexpr>Ú1ServerProtocol.process_request.<locals>.<genexpr>ê   s   é € ÐFº:°%—;‘;“= IÖ-º:ùs   ‚!ú, NrD   r	   r   rC   zSec-WebSocket-Keyúmultiple valuesT)Úvalidateé   zSec-WebSocket-VersionÚ13)rU   ÚsumÚget_allr   Úanyr   Újoinr   Úlenrl   ÚKeyErrorr   r   Úbase64Ú	b64decodeÚencodeÚbinasciiÚErrorr   r)   Úprocess_originÚoriginÚprocess_extensionsr.   Úprocess_subprotocolÚsubprotocol)r=   r_   rU   rn   Ú
connectionrk   ÚkeyÚraw_keyrc   r`   Úversionra   rb   s                r>   rL   ÚServerProtocol.process_requestÍ   sZ  € ð0 —/‘/ˆä-0Ø29·/±/À,Ô2OÓPÒ2O¨Ô˜eÖ$Ñ2OÑPÐRTó.
ˆ
ô ÑF¹:ÓF×FÑFÜ Ø¶z˜dŸi™i¨
Ó3óð ØGKóð ô *-Ø/6¯©¸yÔ/IÓJÒ/I eŒ]˜5Ö!Ñ/IÑJÈBó*
ˆô �G“ Ó! g¨a¡j×&6Ñ&6Ó&8¸KÓ&GÜ  Æ'¨D¯I©I°gÓ,>ÓTÐTÈtÓTÐTð	RØÐ-Ñ.ˆCð
	HÜ×&Ò& s§z¡z£|¸dÑCˆGô ˆw‹<˜2ÓÜ$Ð%8¸#Ó>Ð>Ü" 3›ˆð	VØÐ5Ñ6ˆGð
 �d‹?Ü$Ð%<¸gÓFÐFà×)Ñ)¨'Ó2ˆŒØ-1×-DÑ-DÀWÓ-MÑ*Ðœ?Ø-1×-EÑ-EÀgÓ-NÐNˆÔ*à°/ÐBÐBùòW Qùò Køô ó 	?ÜÐ 3Ó4¸$Ð>Ü"ó 	RÜÐ 3Ð5FÓGÈTÐQð	Rûô �~‰~ó 	HÜ$Ð%8¸#Ó>ÀCÐGûð	Hûô ó 	CÜÐ 7Ó8¸dÐBÜ"ó 	VÜÐ 7Ð9JÓKÐQUÐUð	Vús;   ¥F5ÂF:ÄF? Ä#G/ ÅH Æ?-G,Ç/HÈHÈHÈ-Ic                ó\  •  UR                  S5      nUb  [        [        U5      nU R
                  b^  U R
                   HC  nX2:X  d:  [        U[        R                  5      (       d  M)  Uc  M.  UR                  U5      c  MB    U$    [        U5      eU$ ! [         a    [        SS5      Sef = f)zÿ
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%   rr   N)Úgetr   r   r   r%   r-   Ú
isinstanceÚreÚPatternÚ	fullmatchr   )r=   rU   r‚   Úorigin_or_regexs       r>   r�   ÚServerProtocol.process_origin  s¯   € ð"	GØ—[‘[ Ó*ˆFð ÑÜœ& &Ó)ˆFØ�<‰<Ñ#Ø#'§<¤<�Ø"Ó,Ü˜´·
±
×;Ó;ØÓ*Ø'×1Ñ1°&Ó9ÓEàð ˆñ $0ô $ FÓ+Ð+Øˆøô #ó 	GÜ Ð*;Ó<À$ÐFð	Gús   ‚B ÂB+c                óÒ  • Sn/ n/ nUR                  S5      nU(       aŸ  U R                  (       aŽ  [        U Vs/ s H  n[        U5      PM     sn/ 5      nU Hb  u  p‰U R                   HM  n
U
R                  U:w  a  M   U
R                  X”5      u  p¼UR                  X‹45        UR                  U5          M`     Md     U(       a  [        U5      nX$4$ s  snf ! [         a     M|  f = f)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.

NrI   )	rw   r8   rv   r   ÚnameÚprocess_request_paramsr   Úappendr   )r=   rU   Úresponse_header_valueÚextension_headersÚaccepted_extensionsÚheader_valuesÚheader_valueÚparsed_header_valuesr”   Úrequest_paramsÚext_factoryÚresponse_paramsÚ	extensions                r>   rƒ   Ú!ServerProtocol.process_extensions8  sû   € ðN -1Ðà35ÐØ/1ÐàŸ™Ð(BÓCˆæ˜T×6×6Ü:=ÙCPÓQÂ=°<” Ö.Á=ÑQÐSUó;Ð ó )=Ñ$�Ø#'×#<Ô#<�Kà"×'Ñ'¨4Ó/Ù ð!Ø5@×5WÑ5WØ*ó6Ñ2˜ð &×,Ñ,¨dÐ-DÔEØ'×.Ñ.¨yÔ9ò ó% $=ñ )=ö2 Ü$3Ð4EÓ$FÐ!à$Ð9Ð9ùò? Røô ,ó !Ú ð!ús   ¹CÁ?CÃ
C&Ã%C&c                ó˜   • [        UR                  S5       Vs/ s H  n[        U5      PM     sn/ 5      nU R                  U5      $ s  snf )aA  
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.

rJ   )rv   rw   r   r0   )r=   rU   r›   r/   s       r>   r„   Ú"ServerProtocol.process_subprotocol‰  sW   € ô /2ð %,§O¡OÐ4LÔ$Móâ$M�Lô " ,Ö/Ù$Mñð ó/
ˆð ×&Ñ& |Ó4Ð4ùòs   ™Ac                óæ   • U R                   (       d  gU(       d  [        S5      e[        U5      nU R                    H  nX2;   d  M
  Us  $    [        SSR                  U R                   5      -   5      e)a±  
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.

Nzmissing subprotocolz%invalid subprotocol; expected one of rq   )r9   r   Úsetry   )r=   r/   Úproposed_subprotocolsr…   s       r>   r0   Ú!ServerProtocol.select_subprotocol¡  st   € ðR ×*×*Øö Ü"Ð#8Ó9Ð9ô !$ LÓ 1ÐØ×6Ô6ˆKØÕ3Ø"Ò"ñ 7ô
 Ø3Ø�i‰i˜×3Ñ3Ó4ñ5ó
ð 	
r@   c           
     ó  • [         R                  " U5      nUR                  5       n[        S[        R
                  R                  SS94SS[        [        U5      5      4S/5      n[        UR                  UR                  XC5      $ )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.

rG   TrE   )rH   ÚclosezContent-Length)zContent-Typeztext/plain; charset=utf-8)rQ   rR   r~   r
   r\   r]   r^   Ústrrz   r   rn   Úphrase)r=   ÚstatusÚtextÚbodyrU   s        r>   rP   ÚServerProtocol.rejectÝ  su   € ô* —’ Ó(ˆØ�{‰{‹}ˆÜàœŸ™×/Ñ/°tÐ/Ð<Ð=Ø'Ø!¤3¤s¨4£y£>Ð2Ø=ð	ó
ˆô ˜Ÿ™ f§m¡m°WÓCÐCr@   c                óJ  • U R                   (       a²  UR                  UR                  p2U R                  R                  SX#5        UR                  R                  5        H!  u  pEU R                  R                  SXE5        M#     UR                  (       a/  U R                  R                  S[        UR                  5      5        U R                  R                  UR                  5       5        UR                  S:X  a<  U R                  [        L d   e[        U l        U R                  R                  S5        gU R                  R                  SUR                  UR                  5        U R                  5         U R!                  5       U l        [%        U R"                  5        g)zl
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)rK   zconnection openzconnection rejected (%d %s)N)rO   Ústatus_codeÚreason_phraser3   rU   Ú	raw_itemsr®   rz   Úwritesr–   Ú	serializer1   r   r   ÚinfoÚsend_eofÚdiscardÚparserÚnext)r=   rd   Úcoder«   r‡   rn   s         r>   Úsend_responseÚServerProtocol.send_responseþ  s)  € ð �:�:Ø#×/Ñ/°×1GÑ1G�&Ø�K‰K×ÑÐ0°$Ô?Ø&×.Ñ.×8Ñ8Ö:‘
�Ø—‘×!Ñ! *¨cÖ9ñ ;à�}�}Ø—‘×!Ñ!Ð"7¼¸X¿]¹]Ó9KÔLà�‰×Ñ˜8×-Ñ-Ó/Ô0à×Ñ 3Ó&Ø—:‘:¤Ò+Ð+Ð+ÜˆDŒJØ�K‰K×ÑÐ.Õ/ð �K‰K×ÑØ-Ø×$Ñ$Ø×&Ñ&ôð �M‰MŒOØŸ,™,›.ˆDŒKÜ�—‘Õr@   c              #  óÜ  >#   • U R                   [        L aÄ   [        R                  " U R                  R
                  5       S h  v•N nU R                  (       ae  U R                  R                  SWR                   5        UR"                  R%                  5        H!  u  p4U R                  R                  SX45        M#     U R&                  R)                  W5        [*        TU ]  5        S h  v•N   g  N¬! [         ai  n[        S5      U l        X R                  l	        U R                  5         U R                  5       U l        [        U R                  5        S v •   S nAGNS nAff = f N}7f)Nz$did not receive a valid HTTP requestz< GET %s HTTP/1.1z< %s: %s)r1   r   r   ÚparseÚreaderÚ	read_linerY   r   rN   rW   r·   r¸   r¹   rº   rO   r3   ÚpathrU   r³   Úeventsr–   r6   )r=   r_   rc   r‡   rn   r<   s        €r>   r¿   ÚServerProtocol.parse   s
  øé € Ø�:‰:œÒ#ðÜ%,§]¢]Ø—K‘K×)Ñ)ó&÷ �ð �z�zØ—‘×!Ñ!Ð"5°w·|±|ÔDØ")§/¡/×";Ñ";Ö"=‘J�CØ—K‘K×%Ñ% j°#Ö=ñ #>ð �K‰K×Ñ˜wÔ'ä‘7‘=“?×"Ñ"ñ)øô ó Ü%3Ø:ó&�Ô"ð 03×"Ñ"Ô,Ø—‘”Ø"Ÿl™l›n�”Ü�T—[‘[Ô!ß‘ûðúñ" 	#ùsN   ƒE,˜-C4 ÁC2ÁC4 Á
B"E,Ã,E*Ã-E,Ã2C4 Ã4
E'Ã>AE"ÅE,Å"E'Å'E,)	r8   r9   r.   rN   r‚   r-   r¹   r1   r…   )r-   z0Sequence[Origin | re.Pattern[str] | None] | Noner.   z'Sequence[ServerExtensionFactory] | Noner/   zSequence[Subprotocol] | Noner0   zLCallable[[ServerProtocol, Sequence[Subprotocol]], Subprotocol | None] | Noner1   r!   r2   z*int | None | tuple[int | None, int | None]r3   zLoggerLike | NoneÚreturnÚNone)r_   r   rÅ   r   )r_   r   rÅ   z"tuple[str, str | None, str | None])rU   r
   rÅ   zOrigin | None)rU   r
   rÅ   z"tuple[str | None, list[Extension]])rU   r
   rÅ   úSubprotocol | None)r/   zSequence[Subprotocol]rÅ   rÇ   )r¬   r&   r­   rª   rÅ   r   )rd   r   rÅ   rÆ   )rÅ   zGenerator[None])Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r7   rg   rL   r�   rƒ   r„   r0   rP   r¼   r¿   Ú__static_attributes__Ú__classcell__©r<   s   @r>   r*   r*   0   sú   ø† ñð@ EIØ>BØ59ð Ø!Ø?DØ$(ñ!ð Bð!ð <ð	!ð
 3ð!ðð!ð ð!ð =ð!ð "ð!ð  
÷!!ð !ôFZ=ðxFCàðFCð 
,ôFCôP!ðFO:àðO:ð 
,ôO:ôb5ð0:
à+ð:
ð 
ô:
ôxDôB ÷D#õ #r@   c                  ó,   ^ • \ rS rSrSU 4S jjrSrU =r$ )ÚServerConnectioni:  c                ó\   >• [         R                  " S[        5        [        TU ]  " U0 UD6  g )Nz.ServerConnection was renamed to ServerProtocol)ÚwarningsÚwarnÚDeprecationWarningr6   r7   )r=   ÚargsÚkwargsr<   s      €r>   r7   ÚServerConnection.__init__;  s)   ø€ Ü�ŠØ<Üô	
ô 	‰Ò˜$Ð) &Ó)r@   © )rÖ   r   r×   r   rÅ   rÆ   )rÈ   rÉ   rÊ   rË   r7   rÍ   rÎ   rÏ   s   @r>   rÑ   rÑ   :  s   ø† ÷*õ *r@   rÑ   z.legacy.server)ÚWebSocketServerÚWebSocketServerProtocolÚ	broadcastÚserveÚ
unix_serve)Údeprecated_aliases)<Ú
__future__r   r|   r   Úemail.utilsr\   rQ   rŽ   rÓ   Úcollections.abcr   r   Útypingr   r   r   Údatastructuresr
   r   Ú
exceptionsr   r   r   r   r   r   r   r.   r   r   rU   r   r   r   r   r   Úhttp11r   r   Úimportsr   Úprotocolr   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r]   r)   Ú__all__r*   rÑ   ÚglobalsrÙ   r@   r>   Ú<module>rë      s°   ðÝ "ã Û Û Û Û 	Û ß /ß &Ñ &ç 8÷÷ ñ ÷ :÷õ ÷ &Ý  ß ?Õ ?÷÷ ñ õ ð Ð
€ôG#�Xô G#ôT*�~ô *ñ ÙƒIð ,Ø#3Ø%Ø!Ø&ñó
r@   