summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2022-01-06 17:41:16 +0100
committerGitHub <noreply@github.com>2022-01-06 17:41:16 +0100
commit2067820714fea49be1692fa678754488ace8228b (patch)
tree2decf412d953016a5b4853e77b04f94466a588dc /cli/dts/lib.deno.ns.d.ts
parent46f2ff120587cd1cb7b11e66d41ad6ad46fb09a8 (diff)
feat(ext/websocket): server automatically handle ping/pong for incoming WebSocket (#13172)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/dts/lib.deno.ns.d.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index 914c63b24..03ba3d898 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -2745,6 +2745,14 @@ declare namespace Deno {
export interface UpgradeWebSocketOptions {
protocol?: string;
+ /**
+ * If the client does not respond to this frame with a
+ * `pong` within the timeout specified, the connection is deemed
+ * unhealthy and is closed. The `close` and `error` event will be emitted.
+ *
+ * The default is 120 seconds. Set to 0 to disable timeouts.
+ */
+ idleTimeout?: number;
}
/**