Brayns JavaScript/TypeScript Client
A JavaScript/TypeScript interface for interacting with the Brayns rendering service.
Table of Contents
Installation
You can install this package from NPM:
npm add rxjs rockets-client brayns
Or with Yarn:
yarn add rxjs rockets-client brayns
NOTE: TypeScript type definitions are bundled with the package.
Usage
Create a client and connect:
;; ;await brayns.ready.pipetake1 .toPromise;
Listen to server notifications:
; ; brayns.observePROGRESS .subscribe;
Send notifications:
; ;await brayns.ready.pipetake1 .toPromise; brayns.notifyCANCEL, ;
Make a request:
; ;await brayns.ready.pipetake1 .toPromise; ;console.logstatistics;
Upload a model:
; ;await brayns.ready.pipetake1 .toPromise; // Usually we get the file from user input; await brayns.upload;