Jayson RPC Vue.js integration
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
index.js
package.json

README.md

JAYSON-RPC Vue.js integration

Install

$ npm install jayson-rpc-vue

Open you main.js file and add the following

import JaysonRPC from 'jayson-rpc-vue'

Vue.use(JaysonRPC, 'URL', https = false);

In your .vue file, to make a call just do it using

this.$JaysonRPC.request('method_name', ['params'], function(err, response) {
      if (err) throw err;
      console.log(response.result); // 2
});