🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
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
npm
Version published
Weekly downloads
10
-68.75%
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