# Absinthe subscriptions broken?

**URL:** <https://forum.elixirforum.com/t/absinthe-subscriptions-broken/29045>\
**Category:** Questions\
**Tags:** absinthe, subscription\
**Created:** [February 12, 2020, 8:16am UTC](https://forum.elixirforum.com/t/absinthe-subscriptions-broken/29045 "2020-02-12T08:16:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![malte](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/m/ce7236/32.png) [@malte](https://forum.elixirforum.com/u/malte)\
**Post date:** [February 13, 2020, 6:00am UTC](https://forum.elixirforum.com/t/absinthe-subscriptions-broken/29045/3 "2020-02-13T06:00:57Z")

</div>

Actually, the `supervisor(...)` calls are for 1.3 from what I understand, because in 1.4 the direct call to `supervisor()` has been supplanted by doing `Supervisor.start_link(...)`.

So on the page I linked above (from absinthe-graphql’s github repo), it says to add it like so:  
`{Absinthe.Subscription, PbWeb.Endpoint}` to the children list. Doing this results in the problem I reported above.

However, doing what you suggest fixes the issue! So in case this may help others, here is what the relevant part of my `application.ex` looks like:

```def
    # List all child processes to be supervised
    children = [
      # Start the Ecto repository
      Pb.Repo,
      # Start the endpoint when the application starts
      PbWeb.Endpoint,
      # Starts a worker by calling: Pb.Worker.start_link(arg)
      # {Pb.Worker, arg},
      {Absinthe.Subscription, [PbWeb.Endpoint]}
    ]

    # See https://hexdocs.pm/elixir/Supervisor.html
    # for other strategies and supported options
    opts = [strategy: :one_for_one, name: Pb.Supervisor]
    Supervisor.start_link(children, opts)
  end

```

Thank you very much, idiot!

---

_[View the full topic](https://forum.elixirforum.com/t/absinthe-subscriptions-broken/29045)._
