GraphQLTransportWSHandler
Constructor:
Signature:
def __init__( self, schema: BaseSchema, debug: bool, connection_init_wait_timeout: timedelta, get_context: Callable, get_root_value: Callable, ws: WebSocket,) -> None: ...Parameters:
-
schema:- Type
-
BaseSchema
-
debug:- Type
-
bool
-
connection_init_wait_timeout:- Type
-
timedelta
-
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: dict) -> None:...Parameters:
-
data:- Type
-
dict
-
-
close
Signature:
def close(self, code: int, reason: str) -> None:...Parameters:
-
code:- Type
-
int
-
reason:- Type
-
str
-
-
handle_request
Signature:
def handle_request(self) -> None:...