diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-01-15 01:43:25 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | 02cf9e43839ee1747c07e1f2c8c7b6ecc24518cc (patch) | |
tree | 8ea7d4d8d1d0c7e7826a7d06bb18fb8afd44d484 /typings/websocket.pyi | |
parent | 6598b7a77c0b590fcece218b9bf065301c3ee82d (diff) | |
download | wee-slack-02cf9e43839ee1747c07e1f2c8c7b6ecc24518cc.tar.gz |
Ping websocket every 5 seconds
Diffstat (limited to 'typings/websocket.pyi')
-rw-r--r-- | typings/websocket.pyi | 3 |
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: ... |