Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.03 KB

File metadata and controls

23 lines (16 loc) · 1.03 KB

CloseEvent

Namespace: SpawnDev.SpawnJS.JSObjects
Inherits: Event
Source: JSObjects/CloseEvent.cs
MDN Reference: CloseEvent on MDN

A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent

Constructors

Signature Description
CloseEvent(SpawnJSObjectReference _ref) Deserialization constructor

Properties

Property Type Access Description
Code ushort get Returns an unsigned short containing the close code sent by the server.
Reason string get Returns a string indicating the reason the server closed the connection. This is specific to the particular server and sub-protocol.
WasClean bool get Returns a boolean value that Indicates whether or not the connection was cleanly closed.