Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Maintainers
1
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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc