getKeepaliveInterval method

int getKeepaliveInterval()

Inquiry method that gets the interval between two keepalive packets sent by Lightstreamer Server on a stream connection when no actual data is being transmitted.

If the returned value is 0, it means that the interval is to be decided by the Server upon the next connection.

Lifecycle If the value has just been set and a connection to Lightstreamer Server has not been established yet, the returned value is the time that is being requested to the Server. Afterwards, the returned value is the time used by the Server, that may be different, because of Server side constraints.

Returns The time, expressed in milliseconds, between two keepalive packets sent by the Server, or 0.

Implementation

external int getKeepaliveInterval();