I’ve installed LiveView into an existing Phoenix project (originally created on Phoenix 1.4.16) following this guide. I’m currently working on a LiveView that’s rendered directly in my
live "/url", LiveViewModule. I’ve added a regex for this source file to my
live_reload config in
dev.exs, and I see the
[debug] Live reload logline when I make changes to this file.
However, the LiveReload socket for this page gets disconnected immediately after the page loads. In Chrome, the socket to
ws://localhost:4000/phoenix/live_reload/socket/websocket?vsn=2.0.0 errors with “WebSocket is closed before the connection is established.”
This only happens on this
live route; other views (rendered through
get routes and normal controllers and views) live-reload fine.
How might I go about debugging the LiveReload socket and why it’s getting disconnected on