GraphQLWSHandler
Constructor:
Signature:
def __init__( self, schema: BaseSchema, debug: bool, keep_alive: bool, keep_alive_interval: float, get_context: Callable, get_root_value: Callable, ws: WebSocket,) -> None: ...
Parameters:
-
schema:
- Type
-
BaseSchema
-
debug:
- Type
-
bool
-
keep_alive:
- Type
-
bool
-
keep_alive_interval:
- Type
-
float
-
get_context:
- Type
-
Callable
-
get_root_value:
- Type
-
Callable
-
ws:
- Type
-
WebSocket
Methods:
-
get_context
Signature:
def get_context(self) -> Any:... -
get_root_value
Signature:
def get_root_value(self) -> Any:... -
send_json
Signature:
def send_json(self, data: OperationMessage) -> None:...Parameters:
-
data:
- Type
-
OperationMessage
-
-
close
Signature:
def close(self, code: int = 1000, reason: str | None = None) -> None:...Parameters:
-
code:
- Type
-
int
- Default
-
1000
-
reason:
- Type
-
str | None
- Default
-
None
-
-
handle_request
Signature:
def handle_request(self) -> Any:...