Subscriptions and transports
Choose a transport
Section titled “Choose a transport”Pick a transport per tab with the Transport select in the request bar:
| Transport | Use it for |
|---|---|
| Auto (default) | Queries and mutations over HTTP, subscriptions over graphql-ws. |
| HTTP | Plain HTTP requests only. |
| graphql-ws | Subscriptions over the graphql-transport-ws protocol. |
| subscriptions-transport-ws | The legacy Apollo WebSocket protocol. |
| SSE | GraphQL over Server-Sent Events, on distinct connections. |
| Multipart | HTTP multipart/mixed: Apollo multipart subscriptions and @defer / @stream. |
WebSocket endpoint and headers
Section titled “WebSocket endpoint and headers”WebSocket transports use a WS endpoint. By default it’s the endpoint with http→ws and https→wss.
Browsers can’t set WebSocket headers, so the Headers JSON is sent as connectionParams. If the WebSocket URL is unencrypted (ws://) and not a loopback host, the Headers section warns that headers travel in clear text. Cookies on the handshake follow the browser’s own rules, not the Send cookies toggle.
Run and stop
Section titled “Run and stop”A connection opens only when you press Run, and it never reconnects on its own. Stop, closing the tab, or running again closes it.
A stream shows a live event log. The newest 1,000 events are kept; older ones are counted as “earlier events not shown”.
Try it
Section titled “Try it”The local test server exposes:
/graphql-wsand/graphql-ws-auth(needsconnectionParams.authorization = "Bearer test")/graphql-legacy/graphql-sse/graphql-multipart@deferon/graphql
subscription { countdown(from: 5, intervalMs: 700)}Change the default transport used by Auto in Settings (Subscription transport for Auto).
© 2026 Melliforge. All rights reserved.