Skip to content

apollographql/graphql_websocket_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disclaimer

This project is provided for reference and debugging purposes only. While it can be used for support purposes, it is not covered by any support policy nor does it come with any guarantees. It is not actively maintained and issues are not monitored.

Usage

$ cargo run -- --help

GraphQL websocket client to emulate several connections/subscriptions to a subgraph

Usage: graphql_websocket_client --connections <CONNECTIONS> --url <URL> --subscription-file <SUBSCRIPTION_FILE> --protocol <PROTOCOL>

Options:
  -c, --connections <CONNECTIONS>
          Number of websocket connection
  -u, --url <URL>
          Url to the websocket url (example: ws://localhost:4002/graphql)
  -s, --subscription-file <SUBSCRIPTION_FILE>
          Path to subscription file
  -p, --protocol <PROTOCOL>
          GraphQL websocket protocol [possible values: graphql_ws, graphql_transport_ws]
  -h, --help
          Print help

Example of usage if you want to execute 1000 subscriptions on a subgraph:

$ cargo run -- --connections 1000 --url ws://localhost:4002/graphql --subscription-file ./subscription.graphql --protocol graphql_ws

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages