Prerequisites
Using any of the GoldRush developer tools requires an API key.Get Started
Sign up for a free API key to get started with GoldRush.
Connection
The Streaming API supports GraphQL subscriptions over WebSocket, using the GraphQL over WebSocket protocol. The recommended approach is to use the official TypeScript Client SDK which supports the Streaming API and manages all WebSocket connections.graphql-ws
.
If you’re not using the
graphql-ws
package, you must set the WebSocket protocol header:"Sec-WebSocket-Protocol" : "graphql-transport-ws"
This header is required for the server to properly recognize and handle your GraphQL subscription requests.