Transport Client

Warning

This is a low-level generated support module. It is documented primarily for reference and type linking. Most users should not interact with it directly.

The transport client provides the low-level asynchronous HTTP and WebSocket transport implementation used by the generated GraphQL client.

API Reference

class gpp_client.generated.async_base_client.AsyncBaseClient(url: str = '', headers: dict[str, str] | None = None, http_client: AsyncClient | None = None, ws_url: str = '', ws_headers: dict[str, Any] | None = None, ws_origin: str | None = None, ws_connection_init_payload: dict[str, Any] | None = None)[source]

Bases: object

async execute(query: str, operation_name: str | None = None, variables: dict[str, Any] | None = None, **kwargs: Any) Response[source]
async execute_ws(query: str, operation_name: str | None = None, variables: dict[str, Any] | None = None, **kwargs: Any) AsyncIterator[dict[str, Any]][source]
get_data(response: Response) dict[str, Any][source]
class gpp_client.generated.async_base_client.GraphQLTransportWSMessageType(value)[source]

Bases: str, Enum

COMPLETE = 'complete'
CONNECTION_ACK = 'connection_ack'
CONNECTION_INIT = 'connection_init'
ERROR = 'error'
NEXT = 'next'
PING = 'ping'
PONG = 'pong'
SUBSCRIBE = 'subscribe'