Spec-Zone.ru › Deno 1

CloseEvent

class CloseEvent extends Event {
constructor(type: string, eventInitDict?: CloseEventInit);
readonly code: number;
readonly reason: string;
readonly wasClean: boolean;
}

Extends

Event

Constructors

new CloseEvent(type: string, eventInitDict?: CloseEventInit)

Properties

code: number

Returns the WebSocket connection close code provided by the server.

reason: string

Returns the WebSocket connection close reason provided by the server.

wasClean: boolean

Returns true if the connection closed cleanly; false otherwise.

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

Spec-Zone.ru

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