gql.transport.common.adapters.connection¶
- class gql.transport.common.adapters.connection.AdapterConnection(url: str, connect_args: Optional[Dict[str, Any]])¶
Bases:
ABC
Abstract interface for subscription connections.
This allows different WebSocket implementations to be used interchangeably.
- abstract async send(message: str) None ¶
Send message to the server.
- Args:
message: String message to send
- Raises:
TransportConnectionFailed: If connection closed