aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-29 21:15:15 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commitc643c84a253b3e98f5e0a1fc19855e948c84fc99 (patch)
tree9e593d86833a7aa3a831cdf74eb2e4e152214d32 /typings
parenta91e003fcdb63e80172b2c001597f4042179d04e (diff)
downloadwee-slack-c643c84a253b3e98f5e0a1fc19855e948c84fc99.tar.gz
Add command /slack disconnect
Diffstat (limited to 'typings')
-rw-r--r--typings/websocket.pyi5
1 files changed, 5 insertions, 0 deletions
diff --git a/typings/websocket.pyi b/typings/websocket.pyi
index e7ed83b..0eaeda7 100644
--- a/typings/websocket.pyi
+++ b/typings/websocket.pyi
@@ -1,6 +1,8 @@
from socket import socket
from typing import Any, Dict, Optional, Tuple
+STATUS_NORMAL = 1000
+
class ABNF:
"""
ABNF frame class.
@@ -51,6 +53,9 @@ class WebSocket:
def recv_data(
self, control_frame: bool
) -> Tuple[int, Any,]: ...
+ def close(
+ self, status: int = STATUS_NORMAL, reason: bytes = b"", timeout: int = 3
+ ) -> None: ...
def create_connection(
url: str, timeout: Optional[int] = ..., **options: Dict[str, Any]