fix(core): Setup websocket keep-live messages (#6866)

fixes #6757
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-08-28 10:26:27 +02:00
committed by GitHub
parent 60c20a4ffd
commit 8bdb07d33d
5 changed files with 56 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
diff --git a/index.d.ts b/index.d.ts
index 7a8182a94289524851cb08a3b24897f2b6bce747..f5bfb61bdacbae81ca274cc4b5a61e6e7322b7cd 100755
--- a/index.d.ts
+++ b/index.d.ts
@@ -72,6 +72,9 @@ declare class WebSocket extends EventEmitter {
| typeof WebSocket.CLOSED;
readonly url: string;
+ /** Indicates if the connection has replied to the last PING */
+ isAlive: boolean;
+
/** The connection is not yet open. */
readonly CONNECTING: 0;
/** The connection is open and ready to communicate. */