node package manager

@digitalscout/message-service-node

Message Service Module

Node Module for sending and parsing Playon Message Bus messages.

To setup, first ensure your AWS service has attached the IAM policy message-bus-service-policy. Then add the module to your project using NPM.

$ npm install @digitalscout/message-service-node --save

To send messages:

 
var messageService = require('message_service');
messageService.dispatch({
  environment:'stage',
  message: {
    type:'lifecycles_add-item',
    body: {
      a:'1',
      b:'2',
      c:'3'
    },
    origin:'meeting-test'
  }
}).then(function (res) {
  console.log(res);
}).catch(function (err) {
  console.log(err);
});