sync-rpc
Run asynchronous commands synchronously by putting them in a separate process
Installation
npm install sync-rpc --save
Usage
worker.js
{ // you can setup any connections you need here return { // Note how even though we return a promise, the resulting rpc client will be synchronous return Promise; }}moduleexports = init;
const assert = ;const rpc = ; const client = ; const result = ; ;
License
MIT