Set the LiveView socket session opts dynamically

Ok, I am an idiot who does not RTFM… Sorry

socket "/live", MyAppWeb.UserSocket,
  websocket: [connect_info: [session: {__MODULE__, :runtime_opts, []}]]

# ...

def runtime_opts() do
  Keyword.put(@session_options, :domain, host())
end

However, this will not allow me to access the conn object, which I need in order to determine the correct domain name.