command-listener

1.0.4 • Public • Published

command-listener

A routable command listener. You got a command, yo I'll run it, check out the hook whilst my router resolves it.

 
type Message =
  { id       :: String
  , command  :: String
  , resource :: JSON
  , payload  :: JSON
  }
 
 
type Status
  = OK
  | FAIL
  | REQUEUE
  | PRIORITY_REQUEUE Number
 
 
type Response =
  { message :: Message
  , status  :: Status
  }

Package Sidebar

Install

npm i command-listener

Weekly Downloads

2

Version

1.0.4

License

MIT

Last publish

Collaborators

  • scull7