Skip to content

serv-c/servc-js-client

Repository files navigation

servc-js-client

JS client to interface with a Serv-C compatible server. Documentation can be found https://docs.servc.io

NPM version NPM Downloads

Example

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
    }
*/

About

Client interface for servc

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •