Packagecom.lightstreamer.as_client.events
Classpublic class ConnectionDropEvent
InheritanceConnectionDropEvent Inheritance LSClientEvent Inheritance flash.events.Event

Dispatched whenever a Connection or the whole session is closed because of a Server decision. Possible causes, for instance, may be:

As a consequence, the connection status will be switched to DISCONNECTED and no automatic reconnection attempt will be performed.

By handling the event, it is possible to perform recovery actions, such as trying a reconnection; however, it may be advisable not to try a new connection immediately. Note that in case the connection status is changed in the handler, no further switch to DISCONNECTED status will be performed.

See also

com.lightstreamer.as_client.events.StatusChangeEvent


Public Properties
 PropertyDefined By
 Inheritedclient : LSClient
[read-only] The LSClient which this event is related to.
LSClientEvent
  endCause : int
[read-only] A code that describes the cause of the connection ending or 0 if no cause information is supplied.
ConnectionDropEvent
Public Constants
 ConstantDefined By
  CONNECTION_DROP : String = ConnectionDrop
[static] Define the value of the type property of a ConnectionDrop event object.
ConnectionDropEvent
Property Detail
endCauseproperty
endCause:int  [read-only]

A code that describes the cause of the connection ending or 0 if no cause information is supplied. See the "END" message in the text protocol documentation for details on the possible code values.


Implementation
    public function get endCause():int
Constant Detail
CONNECTION_DROPConstant
public static const CONNECTION_DROP:String = ConnectionDrop

Define the value of the type property of a ConnectionDrop event object.