Skip to main content
Module

x/netzo/deno.d.ts>CloseEvent

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
class CloseEvent
extends Event
import { CloseEvent } from "https://deno.land/x/netzo@v0.1.11/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.