Send message, `send(pid, message)`, from controller to a LiveView process not possible? If so, why not?

One thing to watch out for - mount gets called by two processes during normal operation:

  • in the Cowboy acceptor, with connected?(socket) false for the initial “dead view” render
  • in the channel handler, with connected?(socket) true for subsequent updates

Do you get a different result if you capture self in assigns instead of calling it directly here? I’m wondering if the change from being called from a different process isn’t getting picked up by the diff algorithm…