GraphQL and streams
GraphQL
Tick GraphQL on an endpoint. Its saved body is the query. The call sends POST with {"query", "variables"}.
The call’s body, or --body, is the variables JSON. A blank body sends {}.
A non-empty errors array shows as Check failed, so a check and a runbook treat it as a failure even when the HTTP status is 200.
Server-sent events
@sse ticks
@sse live events@sse <endpoint> streams server-sent events. The name completes the same way @endpoint does: favourites first, then A–Z, Tab cycles, and → accepts the ghost. A name may contain spaces. Extra words after a finished @sse name are ignored.
The stream uses the connection’s auth headers and scrubs secrets from every line. Ctrl+C stops it.
termorq-cli skips @sse steps in a collection. A stream has no single response to check.
WebSocket
@ws chat
@ws chat {"hello": 1}
@ws live events hello@ws <endpoint> [message] opens a WebSocket. An http base URL becomes ws. Text after a finished name is sent as the first message. For example, run @ws chat, then type hello at the prompt and press Enter to send it on that same socket. Replies keep appearing in the scrollback. Leave the message off the command to connect and start sending later.
Auth headers and secret scrubbing match @sse. Ctrl+C closes the socket. termorq-cli skips @ws steps as well.