INNER CODE UNIT · Python
receive
psevensas/DjangoChannelsGraphqlWs · channels_graphql_ws/client.py:129
async def receive(
self, *, wait_id=None, assert_id=None, assert_type=None, raw_response=False
):
"""Receive GraphQL message checking its content.
Args:
wait_id: Wait until response with the given id received, all
intermediate responses will be skipped.
assert_id: Raise error if response id does not match value.
assert_type: Raise error if response type does not match
value.
raw_response: Whether return the entire response or the only
payload.
Returns:
The `payload` field of the message received or `None` or
the entire response if the raw_response flag is True.
"""