@selfage/web_service_client
v2.4.2
Published
Http-based client to call services.
Downloads
25
Readme
@selfage/web_service_client
Install
npm install @selfage/web_service_client
Overview
Written in TypeScript and compiled to ES6 with inline source map & source. See @selfage/tsconfig for full compiler options. Provides a type-safe client to call services from web browsers, with service descriptors are generated by @selfage/generator_cli
.
Example usages
In this repo, test_data/get_comments.ts
, test_data/get_history.ts
, and test_data/upload_file.ts
are code presumably generated by @selfage/generator_cli
.
Then test_data/get_comments_test.ts
contains the most basic usage. test_data/get_history_test.ts
handles authentication. And test_data/upload_file_test.ts
handles streaming bytes data.
The other test files also include error handling.