Skip to content

Kronos-Integration/message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,891 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm License bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities

@kronos-integration/message

The message object is the 'data' object which will be send from step to step

API

Table of Contents

createMessage

Creates a new request message structure. It will merge the new data into a copy of the old request. Only the fields 'info' and 'hops' will be copied

Parameters

  • newData {object} This json is new generated data by the step. It has the follwing structure. newData : { "info" : {}, "payload" : }
  • oldRequestMessage {object} The request message this step has received

addHop

Adds a new way point to the message

Parameters

  • message {object} The message to add the new hop
  • stepName {string} The name of the current step which issues this way point
  • stepType {string} The typeName of the step
  • endpoint {string} The name of endpoint the message is routed through

install

With npm do:

npm install @kronos-integration/message

license

BSD-2-Clause

About

The message object is the 'data' object which will be send from step to step

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors