File: phoenix.rst

package info (click to toggle)
python-gql 3.6.0~b4-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,824 kB
  • sloc: python: 20,567; makefile: 52
file content (17 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.. _phoenix_transport:

PhoenixChannelWebsocketsTransport
=================================

The PhoenixChannelWebsocketsTransport is an async transport which allows you
to execute queries and subscriptions against an `Absinthe`_ backend using the `Phoenix`_
framework `channels`_.

Reference:
:class:`gql.transport.phoenix_channel_websockets.PhoenixChannelWebsocketsTransport`

.. literalinclude:: ../code_examples/phoenix_channel_async.py

.. _Absinthe: http://absinthe-graphql.org
.. _Phoenix: https://www.phoenixframework.org
.. _channels: https://hexdocs.pm/phoenix/Phoenix.Channel.html#content