WebIDLpedia

CloseEvent interface

Definition

WebSockets Standard defines CloseEvent



[Exposed=(Window,Worker)]
interface CloseEvent : Event {
  constructor(DOMString type, optional CloseEventInit eventInitDict = {});

  readonly attribute boolean wasClean;
  readonly attribute unsigned short code;
  readonly attribute USVString reason;
};

Methods and attributes that return objects implementing CloseEvent