Hi Noor,
The heartbeats are sent from the server to the client to keep the TCP
connection alive. The server sends out the heartbeats if no data has
been sent for a certain amount of time. The client checks that
heartbeats are received and generates a connection error when they are
not received.
This is all handled transparently by the gwt-comet library. You are
safe to ignore the onHeartbeat() callback. You might want to use it to
make a connection status light on your GUI blink or something flashy :-
P
From Richard.