INNER CODE UNIT · Python

transport

psevensas/DjangoChannelsGraphqlWs · channels_graphql_ws/client.py:82

    def transport(self) -> _transport.GraphqlWsTransport:
        """Underlying network transport."""
        return self._transport

    @property
    def connected(self) -> bool:
        """Indicate whether client is connected."""
        return self._is_connected

    async def connect_and_init(self) -> None:
        """Establish and initialize WebSocket GraphQL connection.

        1. Establish WebSocket connection.
        2. Initialize GraphQL connection.
        """
        await self._transport.connect()
        await self._transport.send({"type": "connection_init", "payload": ""})
        resp = await self._transport.receive()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…