IBM Worklight v5.0.5 > API reference > IBM Worklight client-side API > JavaScript client-side API

WL.Client.setHeartBeatInterval

Set the interval of the heartbeat signal sent to the WL server to the specified number of seconds. The heartbeat is used to ensure that the session with the server is kept alive when the app does not issue any call to the server (such as invokeProcedure).

Parameter Description
interval An integer value, denoting the interval in seconds between heartbeat messages automatically sent by WLClient to the WL server.

An interval value of -1 disables the heartbeat.


Parent JavaScript client-side API