Is it possible to watch LiveView's network traffic in the browser's console?

Firefox or Chrome.
Just curious.

Regards,
Hector Sansores

It is possible. I’m on mobile so can’t produce a screenshot. In chrome, open the inspect tools with right click inspect. Select the network tab. Refresh the page. The WebSocket for live view is in the network list (WS filter for easy access). You can then look at the data being exchanged over the wire.

Edit: my book actually has this technique documented in the second excerpt available for free at https://pragprog.com/book/sbsockets/real-time-phoenix

5 Likes

Stephen,

Thanks for your response. Just read the excerpt and found what I was looking for.

I have bought all of Prag Prog Phoenix end Elixir books.

Your book is the next!

Regards

2 Likes