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