Server Class Callback Event Methods
The following are the Server class callback event methods.
Syntax
onBroadcast(event)
Description
Fires when there is broadcast message.
Syntax
onHbLost(event)
Description
Fires when the server's heartbeat is lost.
Syntax
onHbRecovered(event)
Description
Fires when the server's heartbeat is recovered.
Syntax
onInService(event)
Description
Fires when the server changes state to in service.
Syntax
onOutOfService(event)
Description
Fires when the server changes state to out of service.
Syntax
onRestart(event)
Description
Fires when server restarts.