A simple Vue.js fetch based JSON-RPC client in ES6.
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.
LICENSE.md
README.md
index.js
package.json

README.md

VUE-JS-JSON-RPC-CLIENT-WITHCREDENTIALS Vue.js integration

Install

$ npm install vue-json-rpc-client-fetch-withcredentials

Open you main.js file and add the following

import JsonRpcVueClient from 'vue-json-rpc-client-fetch-withcredentials'

Vue.use(JsonRpcVueClient, 'URL', 'CREDENTIALS', 'CONFIG');

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

this.$JsonRpcVueClient.request('method_name', {params})
.then((response) => {
    console.log(response);
})