Package | com.lightstreamer.as_client.events |
Class | public class ConnectionDropEvent |
Inheritance | ConnectionDropEvent LSClientEvent flash.events.Event |
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
Property | Defined By | ||
---|---|---|---|
client : 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 |
Constant | Defined By | ||
---|---|---|---|
CONNECTION_DROP : String = ConnectionDrop [static]
Define the value of the type property of a ConnectionDrop event object. | ConnectionDropEvent |
endCause | property |
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.
public function get endCause():int
CONNECTION_DROP | Constant |
public static const CONNECTION_DROP:String = ConnectionDrop
Define the value of the type property of a ConnectionDrop event object.