CloseEvent

extern class js.html.CloseEventextends EventAvailable in jsA 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.

Documentation for this class was provided by MDN.
var code(default,null) : IntThe WebSocket connection close code provided by the server. See Status codes for possible values. var reason(default,null) : StringA string indicating the reason the server closed the connection. This is specific to the particular server and sub-protocol. var wasClean(default,null) : BoolIndicates whether or not the connection was cleanly closed. function new( type : String, ?canBubble : Bool, ?cancelable : Bool ) : Void
version #18236, modified 2013-05-01 11:56:46 by api
0 comment