This topic has not yet been rated - Rate this topic

CloseEvent object

Sent to clients using WebSockets when the connection is closed.

Internet Explorer 10

DOM Information

Inheritance Hierarchy

 Event
   CloseEvent

Members

The CloseEvent object has these types of members:

Methods

The CloseEvent object has these methods.

MethodDescription
initCloseEvent

Initializes the close event.

 

Properties

The CloseEvent object has these properties.

PropertyDescription

code

The connection close-code provided by the server.

reason

Server close-connection reason.

wasClean

Indicates whether the server connection closed cleanly.

 

Remarks

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.

 

 

Send comments about this topic to Microsoft

Build date: 1/23/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.