Operation
A class encapsulating a single operation with its id. Helps enforce protocol state transition.
Constructor:
Signature:
def __init__( self, handler: BaseGraphQLTransportWSHandler, id: str, operation_type: OperationType,) -> None: ...Parameters:
-
handler:- Type
-
BaseGraphQLTransportWSHandler
-
id:- Type
-
str
-
operation_type:- Type
-
OperationType
Methods:
-
send_message
Signature:
def send_message(self, message: GraphQLTransportMessage) -> None:...Parameters:
-
message:- Type
-
GraphQLTransportMessage
-
Attributes:
-
handler: -
id: -
operation_type: -
completed: -
task:- Type
-
asyncio.Task | None