Add heartbeat implementation for user / server protocol.