I use {:phoenix, "~> 1.6.6"} with project[:elixir] = 1.13 and {:yggdrasil, "~> 6.0"} and config :yggdrasil, postgres: [hostname: "localhost"]
I tested the "pg_notify" example:
iex> Yggdrasil.subscribe(name: "new_books", adapter: :postgres, transformer: :json)
{:error, "Yggdrasil postgres not registered in any node"}
If I declare {yggdrasil, "~> 5.0"}, then I have a dependency problem. The command mix deps.get returns:
Failed to use "phoenix_pubsub" (version 2.0.0) because
phoenix (version 1.6.6) requires ~> 2.0
yggdrasil (versions 5.0.1 and 5.0.2) requires ~> 1.1
I tested that the trigger worked with Postgrex.Notification using this setup:
# when I notify in a psql session:
yggdrasil_pg_notify=# NOTIFY "new books", '{"id": 1, "title": "one"}';
# the iex responds with:
iex(2)> [info] [id: 1, title: "one"]
I use
{:phoenix, "~> 1.6.6"}withproject[:elixir] = 1.13and{:yggdrasil, "~> 6.0"}andconfig :yggdrasil, postgres: [hostname: "localhost"]I tested the "pg_notify" example:
If I declare
{yggdrasil, "~> 5.0"}, then I have a dependency problem. The commandmix deps.getreturns:Failed to use "phoenix_pubsub" (version 2.0.0) because
phoenix (version 1.6.6) requires ~> 2.0
yggdrasil (versions 5.0.1 and 5.0.2) requires ~> 1.1
I tested that the trigger worked with
Postgrex.Notificationusing this setup: