CloseEvent
class CloseEvent extends Event {}readonly code: number;readonly reason: string;readonly wasClean: boolean;
Extends
EventConstructors
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