https://github.com/serv-c/servc-js-client
Client interface for servc
https://github.com/serv-c/servc-js-client
lang-typescript
Last synced: 2 months ago
JSON representation
Client interface for servc
- Host: GitHub
- URL: https://github.com/serv-c/servc-js-client
- Owner: serv-c
- License: mit
- Created: 2023-07-30T14:25:28.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2026-03-26T23:50:52.000Z (3 months ago)
- Last Synced: 2026-03-27T02:41:18.847Z (3 months ago)
- Topics: lang-typescript
- Language: TypeScript
- Homepage:
- Size: 552 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# servc-js-client
JS client to interface with a Serv-C compatible server. Documentation can be found https://docs.servc.io
[](https://www.npmjs.com/package/@drgroot/servc)
[](https://www.npmjs.com/package/@drgroot/servc)
## Example
Here is the most simple example of use,
```javascript
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
}
*/
```