npm install @selfage/web_service_client
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
.
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.