@opentap/runner-client
TypeScript icon, indicating that this package has built-in type declarations

2.25.3 • Public • Published

OpenTap Runner Client

This is the web client for the OpenTAP Runner.

Authors

How to install the client

  • For Angular < 11 or webpack < 5, use version < 2
  • For Angular >= 11 or webpack >= 5, use version >= 2.x.x

Install with npm

  npm install @opentap/runner-client

How to use the client

import { RunnerClient } from "@openTap/runner-client";

class client {
  runnerClient: RunnerClient;

  constructor() {
    this.runnerClient = new RunnerClient('<BASE_SUBJECT>', { servers: '<SERVER_ADDRESS>' });
    // Always connect first
    this.runnerClient.connect()
      .then(() => console.log('CONNECTED'))
      .catch(err => console.log(err));
  }

  getImages() {
    this.data = this.runnerClient?.getImages()
      .then(res => console.log(res))
      .catch(error => console.error(error));
  }
}

How to build locally

Clone the project

  ~ git clone https://github.com/opentap/runner-client-web.git

Go to the project directory

  ~ cd runner-client-web

Install dependencies

  npm install

Build the library

  npm run build

How to debug the project

License

MIT

Package Sidebar

Install

npm i @opentap/runner-client

Weekly Downloads

324

Version

2.25.3

License

MIT

Unpacked Size

546 kB

Total Files

32

Last publish

Collaborators

  • enes-ozturk
  • jymuk
  • dennis-ks