aboutsummaryrefslogtreecommitdiffstats
path: root/typings/websocket.pyi
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-15 01:43:25 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit02cf9e43839ee1747c07e1f2c8c7b6ecc24518cc (patch)
tree8ea7d4d8d1d0c7e7826a7d06bb18fb8afd44d484 /typings/websocket.pyi
parent6598b7a77c0b590fcece218b9bf065301c3ee82d (diff)
downloadwee-slack-02cf9e43839ee1747c07e1f2c8c7b6ecc24518cc.tar.gz
Ping websocket every 5 seconds
Diffstat (limited to 'typings/websocket.pyi')
-rw-r--r--typings/websocket.pyi3
1 files changed, 2 insertions, 1 deletions
diff --git a/typings/websocket.pyi b/typings/websocket.pyi
index 613d299..e7ed83b 100644
--- a/typings/websocket.pyi
+++ b/typings/websocket.pyi
@@ -47,10 +47,11 @@ class WebSocketConnectionClosedException(WebSocketException): ...
class WebSocket:
sock: socket
+ def ping(self, payload: str = ...) -> None: ...
def recv_data(
self, control_frame: bool
) -> Tuple[int, Any,]: ...
def create_connection(
- url: str, timeout: Optional[int], **options: Dict[str, Any]
+ url: str, timeout: Optional[int] = ..., **options: Dict[str, Any]
) -> WebSocket: ...