Configure Subscriptions for local development
When composing a Graph locally, you can supply the protocol using the following configuration.Configure Subscriptions using wgc
When using Cosmo Studio as a target to publish your Subgraphs, you’ll be using “wgc publish” to upload the Subgraph configuration to the Studio. In this case, you can supply the protocol using the following config.Setting a custom Subscriptions protocol on wgc publish
Setting a custom Subscriptions URL on wgc publish
Tuning the upstream subscription client
The router’s upstream WebSocket client (the one that connects to subgraphs for subscriptions) is configured under theengine block. The defaults suit most deployments. The options below are listed with their YAML field and the matching environment variable.
Example:
Tuning the server-side WebSocket handler
These options apply to the router’s own WebSocket endpoint (the one clients connect to). They are separate from the upstream client options above.If you are upgrading from an older release and your configuration sets
websocket_client_poll_timeout, websocket_client_read_timeout, websocket_client_conn_buffer_size, or websocket_client_frame_timeout, see the Subscriptions Overhaul migration guide.