Added heartbeat feature

For better SSL connection stability