Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/xdg/vendor/types/deno.d.ts>CloseEvent

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
class CloseEvent
extends Event
import { CloseEvent } from "https://deno.land/x/xdg@v10.5.1/vendor/types/deno.d.ts";

Constructors

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

Properties

readonly
code: number

Returns the WebSocket connection close code provided by the server.

readonly
reason: string

Returns the WebSocket connection close reason provided by the server.

readonly
wasClean: boolean

Returns true if the connection closed cleanly; false otherwise.