Phoenix LiveView v0.15.4 Phoenix.LiveView.Socket View Source

The LiveView socket for Phoenix Endpoints.

This is typically mounted directly in your endpoint.

socket "/live", Phoenix.LiveView.Socket

Link to this section Summary

Link to this section Types


assigns() :: map() | Phoenix.LiveView.Socket.AssignsNotInSocket.t()


fingerprints() :: {nil, map()} | {binary(), map()}


t() :: %Phoenix.LiveView.Socket{
  assigns: assigns(),
  changed: map(),
  connected?: boolean(),
  endpoint: module(),
  fingerprints: fingerprints(),
  host_uri: URI.t(),
  id: binary(),
  parent_pid: nil | pid(),
  private: map(),
  redirected: nil | tuple(),
  root_pid: pid(),
  root_view: module(),
  router: module(),
  view: module()