graphql-http / client / Client
client.Client
• dispose: () => void
▸ (): void
Dispose of the client, cancel all active requests and clean up resources.
void
▸ subscribe<Data, Extensions>(request, sink): () => void
Subscribes to receive a response by making an HTTP request.
It uses the sink to emit the received data or errors. Returns a dispose
function used for canceling active requests and cleaning up.
| Name | Type |
|---|---|
Data |
Record<string, unknown> |
Extensions |
unknown |
| Name | Type |
|---|---|
request |
RequestParams |
sink |
Sink<ExecutionResult<Data, Extensions>> |
fn
▸ (): void
Subscribes to receive a response by making an HTTP request.
It uses the sink to emit the received data or errors. Returns a dispose
function used for canceling active requests and cleaning up.
void