This is a slim implementation of RPC calls using AMQP.
- NodeJS
- RabbitMQ
- 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
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.
MIT © Haithem Bel Haj