Socket
Book a DemoInstallSign in
Socket

@bigtest/client

Package Overview
Dependencies
Maintainers
1
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bigtest/client

Communicate with a BigTest Orchestrator

0.6.0
latest
Source
npmnpm
Version published
Weekly downloads
4
-69.23%
Maintainers
1
Weekly downloads
 
Created
Source

@bigtest/client

Interact with a remote bigtest server with effection-native operations

Synopsis

The client class allows you to evaluate GraphQL queries, mutations, and subscriptions against a remote bigtest orchestrator. It also has the capacity to run "live" queries which return new results for the query every time that the internal state changes.

import { createClient } from `@bigtest/client`;

export function* countAgentsAt(url) {
  // create the client. After this operation completes, the client
  // will be connected to the orchestrator over websockets.
  let client = yield createClient(url);


  let result = yield client.query(`{ agents { agentId } }`);

  return result.agents.length;
}

To run the tests:

$ yarn test

FAQs

Package last updated on 29 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.