This project demonstrates how to make remote procedure calls using Onion Redis queues over Tor.
index.js
- Main server implementation wrapping the Onion Redis clientconfiguration.js
- Configuration for Onion Redis and Torcommit.sh
- Git configuration scriptpackage.json
- Node.js package definition/tests
- Test casesadd.js
- Addition testecho.js
- String echo test
To use:
- Run
npm install
to install dependencies - Start Onion Redis server
- Configure Tor proxy in
configuration.js
- Run test scripts:
node tests/add.js node tests/echo.js
The test scripts demonstrate making RPC calls between isolated services over Onion Redis.
Key objects:
Server
- Manages connection to Onion RedisNamespace
- Groups classes into namespacesClass
- Provides and consumes methodsCall
- Encapsulates method call
Main methods:
provide()
- Offer method to service callersconsume()
- Call remote method
LGPL License.