From 129c0a11eff0cef631c78066d7af556b88eb9059 Mon Sep 17 00:00:00 2001 From: gasolin Date: Wed, 16 Aug 2017 12:03:11 +0800 Subject: [PATCH] use dict instead of makePayload the makePayload method does not exist in the source, should put a dict instead --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e1d2057..da8f327 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,9 @@ From there, the following code can be executed in any environment: const pc = new PingCentre("some_topic_foo", "some_cient_id_123"); // create the payload -const payload = makePayload(); +const payload = { + "event_type": "ping_session" +}; // send the payload asynchronously pc.sendPing(payload);