I added this to the file:
def handle_info(_, socket) do
IO.puts "handle_info"
{:noreply, socket}
end
Ran the app and executed this
iex> iex -S mix phx.server
iex> send(self(), [1,2,3])
And still, “handle_info” diesn’t get printed in the console. Shouln’t this worked regardless of subcription ?
I’m looking at this tutorial and they do something similar to what I’m doing here, so I think something else is amiss