Skip to content

pedroresende/json-rpc-client-fetch-withcredentials

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON-RPC-CLIENT-FETCH-WITHCREDENTIALS

INSTALL

$ yarn add json-rpc-client-fetch-withcredentials

Open you main.js file and add the following:

import JsonRpcClient from 'json-rpc-client-fetch-withcredentials';

const client = new JsonRpcClient(<url>, <credencials>, newHeaders, debug)

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

About

📫 A simple fetch based JSON-RPC client in ES6.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%