sendHeartbeat method
void
sendHeartbeat()
Implementation
void sendHeartbeat() {
timer = Timer.periodic(Duration(seconds: 10), (timer) {
//TODO changements
send(json.encode({'type': 'heartbeat'}));
});
}