deno / 1.23.2 / ~ / closeevent.html /

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