Frontend WeSocket interface for Zox.js GraphQL endpoint
Connect using a single line of code.
WeSocket will auto-reconnect if connection breaks.
const gql = ;const gql = 'ws://localhost:8080/graphql';
Subscribe to any number of event feeds.
var sid = gql;
Unsubscribe using the returned subscription id.
gql;
Execute Queries and Mutations over the same connection.
gql;const event = gql;
Options:
query: Send raw GraphQL Queryid: Execute a predefined Query by it's IDop: Operation name - used when the Query contains multiple operationsvars: Variables