JS client to interface with a Serv-C compatible server. Documentation can be found https://docs.servc.io
Here is the most simple example of use,
import get from "@drgroot/servc";
const response = await poll(
{
route: "my-microservice",
argument: {
method: "my-microservice-method",
inputs: 123123,
},
},
"http://localhost:3000",
);
console.log(response);
/*
{
"id": "asdas-a123ad",
"progress": 100,
"statusCode": 200,
"responseBody": myresponse,
"isError": false
}
*/