Passing client IP to socket

The proper way to do this today is to add the :peer_data option to your socket’s connect_info:
https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#get_connect_info/1-examples

9 Likes