Spec-Zone.ru › Deno 1

Deno.UpgradeWebSocketOptions

interface UpgradeWebSocketOptions {
idleTimeout?: number;
protocol?: string;
}

Properties

idleTimeout?: number

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.

protocol?: string

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.UpgradeWebSocketOptions

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API