socket response to heartbeat