anchor.diff:      #pushy_client_config{command_address = CommandAddress,
                            heartbeat_address = HeartbeatAddress,
                            heartbeat_interval = Interval,
  +                         session_method = SessionMethod,
  +                         session_key = SessionKey,
                            server_public_key = PublicKey } = ?TIME_IT(pushy_client_config, get_config,
                                                                       (OrgName, NodeName,
                                                                        list_to_binary(CreatorName),
  
positive.code: -spec send_heartbeat(#state{}) -> #state{}.
  send_heartbeat(#state{command_sock = Sock,
                        client_name = ClientName,
                        sequence = Sequence,
                        private_key = PrivateKey,
                        incarnation_id = IncarnationId,
                        node_id = NodeId} = State) ->
      lager:debug("Sending heartbeat ~w for ~s", [Sequence, NodeId]),
  
      Msg = {[{node, NodeId},
              {client, ClientName},
              {org, "pushy"},
              {type, heartbeat},
              {timestamp, list_to_binary(httpd_util:rfc1123_date())},
              {sequence, Sequence},
              {incarnation_id, IncarnationId},
              {job_state, "idle"},
              {job_id, "null"}
             ]},
      % JSON encode message
      BodyFrame = jiffy:encode(Msg),
  
      % Send Header (including signed checksum)
      HeaderFrame = pushy_messaging:make_header(proto_v2, rsa2048_sha1, PrivateKey, BodyFrame),
      pushy_messaging:send_message(Sock, [HeaderFrame, BodyFrame]),
      lager:debug("Heartbeat sent: header=~s,body=~s",[HeaderFrame, BodyFrame]),
      State#state{sequence=Sequence + 1}.
  
negative.code:     State = #state{command_sock = CommandSock,
                     heartbeat_sock = HeartbeatSock,
                     client_name = ClientName,
                     org_name = OrgName,
                     heartbeat_interval = Interval,
                     sequence = 0,
                     server_public_key = PublicKey,
                     session_key = SessionKey,
                     session_method = SessionMethod,
                     node_id = NodeName,
                     incarnation_id = IncarnationId
                    },
  