1.2.1 • Published 7 years ago

micro-node-amqp v1.2.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Build Status Dependency Status devDependency Status Coverage Status

AMQP RPC Helper

This is a slim implementation of RPC calls using AMQP.

Requirements

  • NodeJS
  • RabbitMQ

Interface

  • server(addr, handler): creates an RPC server bound to the address with the handler
  • client(addr): creates an RPC client bound to the address and returns a function that can trigger request and waits for callbacks

Gotchas

The server handler should respond with a JSON RPC response meaning an Object with a result and an error property (no node style error passing here) The client will get the node style error handling for the server response meaning the error will be passed forst and the result second.

License

MIT © Haithem Bel Haj

1.2.1

7 years ago

1.2.0

8 years ago

1.1.9

8 years ago

1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago