Options
All
  • Public
  • Public/Protected
  • All
Menu

rpc-prototype

rpc-prototype

Another RPC Implementation

API Documentation

rpc-prototype

Example

alice.on('ping', (resolve, reject, data) => {
  resolve(data); // Sends response with 'Hello World!'
});

bob.exec('ping', 'Hello World!').then(result => {
  console.log(result); // Prints 'Hello World!' 
}).catch(error => {
  throw error;
});

Generated using TypeDoc