| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/websockets/__pycache__/ |
Upload File : |
�
�=Xcm. � �$ � d dl mZ d dlmZmZmZmZ ddlmZm Z m
Z
mZmZ ddl
mZmZ ddlmZmZmZmZmZmZ ddlmZmZ ddlmZmZmZmZmZm Z m!Z!m"Z" dd l#m$Z$m%Z% dd
lm&Z&m'Z'm(Z(m)Z)m*Z*m+Z+ ddl,m-Z- ddl.m/Z/m0Z0 dd
l1T dgZ2 G d� de� � Z3dS )� )�annotations)� Generator�List�Optional�Sequence� )�CLIENT�
CONNECTING�OPEN�
Connection�State)�Headers�MultipleValuesError)�InvalidHandshake�
InvalidHeader�InvalidHeaderValue�
InvalidStatus�InvalidUpgrade�NegotiationError)�ClientExtensionFactory� Extension)�build_authorization_basic�build_extension�
build_host�build_subprotocol�parse_connection�parse_extension�parse_subprotocol�
parse_upgrade)�Request�Response)�ConnectionOption�ExtensionHeader�
LoggerLike�Origin�Subprotocol�UpgradeProtocol)�WebSocketURI)�
accept_key�generate_key)�*�ClientConnectionc �f � � e Zd ZdZdddeddfd$� fd�
Zd%d�Zd&d�Zd'd�Zd(d�Z d)d!�Z
d*� fd#�Z� xZS )+r, a�
Sans-I/O implementation of a WebSocket client connection.
Args:
wsuri: URI of the WebSocket server, parsed
with :func:`~websockets.uri.parse_uri`.
origin: value of the ``Origin`` header. This is useful when connecting
to a server that validates the ``Origin`` header to defend 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.
state: initial state of the WebSocket connection.
max_size: maximum size of incoming messages in bytes;
:obj:`None` to disable the limit.
logger: logger for this connection;
defaults to ``logging.getLogger("websockets.client")``;
see the :doc:`logging guide <../topics/logging>` for details.
Ni �wsurir( �origin�Optional[Origin]�
extensions�*Optional[Sequence[ClientExtensionFactory]]�subprotocols�Optional[Sequence[Subprotocol]]�stater
�max_size�
Optional[int]�logger�Optional[LoggerLike]c � �� t � � � t |||�� � || _ || _ || _ || _ t � � | _ d S )N)�sider5 r6 r8 ) �super�__init__r r. r/ �available_extensions�available_subprotocolsr* �key) �selfr. r/ r1 r3 r5 r6 r8 � __class__s ��3/usr/lib/python3/dist-packages/websockets/client.pyr= zClientConnection.__init__E sa �� � ��������� �
�
�
� ��
����$.��!�&2��#��>�>����� �returnr c �� � t � � }t | j j | j j | j j � � |d<