CloseEventclass CloseEvent extends Event {constructor(type: string, eventInitDict?: CloseEventInit);readonly code: number;readonly reason: string;readonly wasClean: boolean;}§Extends§Event[src]§Constructors§new CloseEvent(type: string, eventInitDict?: CloseEventInit)[src]§Properties§code: number[src]Returns the WebSocket connection close code provided by the server. §reason: string[src]Returns the WebSocket connection close reason provided by the server. §wasClean: boolean[src]Returns true if the connection closed cleanly; false otherwise.