Closed pdehaan closed 4 months ago
So I guess the questions are:
.validate()
be able to sent via .sendPing()
?PingCentre()
constructor be to ".../activity-stream" [like it is in example.js], or should it be to ".../ping-centre" [like it is in src/config.js]PingCentre#validate()
method inject the this._topic
and this._clientID
values, like we do in PingCentre#sendPing()
?
Here's the current behavior if I try running ./example.js locally (with a couple minor tweaks):
Input:
Output:
Not super helpful failure message, but if I sprinkle some
.then().catch()
magic, things get a bit better:Input:
Output:
So it looks like I still need to pass a
client_id
andtopic
to.validate()
, even though I specified them in the constructor.Adding those two missing props seems to work and validates as expected:
Input
Output:
SUCCESS! Now that my example ping validates, if I change the
.validate()
to.sendPing()
, it implodes with another error:Input:
Output: