You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may be wrong but it seems that a piece of doc is missing regarding the use of the client as a consummer.
Spoiler alert I'm definitely not familiar with Node :|
I had hard time finding where you were binding the socket and finall I found in confluence this doc, so maybe it's worh adding it in the Readme.md :
constapp=require('express')();constPubSub=require('appc-pubsub');letpubsub=newPubSub({key: someHexaKey,secret: someSecret});// Make sure JSON body parsing is done firstapp.use(require('body-parser').json());// Wire up the pubsub route handler to enable pubsub.onapp.post('/webhook',pubsub.handleWebhook);// Listen for platform eventspubsub.on('event:com.appcelerator.platform.*',function(data){console.log('Platform event received:',JSON.stringify(data,null,4));});// Listen for billing renewal eventspubsub.on('event:com.appcelerator.billing.renew',function(data){console.log('Subscription renewal event received:',JSON.stringify(data,null,4));});app.listen(8008);
The text was updated successfully, but these errors were encountered:
Hello,
I may be wrong but it seems that a piece of doc is missing regarding the use of the client as a consummer.
Spoiler alert I'm definitely not familiar with Node :|
I had hard time finding where you were binding the socket and finall I found in confluence this doc, so maybe it's worh adding it in the Readme.md :
The text was updated successfully, but these errors were encountered: