var pubsub = gcloud.pubsub;
var topic = pubsubClient.topic('my-topic');
topic.subscribe('subscription-name', options, function(err, subscription) {
subscription.on('message', function(message){
console.log(message.data) //message.data = Contents of the message. is undefined and all the data contents are in the message variable
});
});
ackId=RUXMjY, id=966xxxx, item_id=574, body=xxxx test, to=xxxx87832, , ack=function () { [native code] }, skip=function () {
delete self.inProgressAckIds[message.ackId];
self.refreshPausedStatus_();
}
Environment details
Steps to reproduce
google-cloudExample (content of the message, the item_id,body and to are supposed to be under data) according to https://github.com/GoogleCloudPlatform/google-cloud-node/blob/v0.42.2/packages/pubsub/src/subscription.js#L142