BeamConsoleWeb.Hooks (beam_console v0.5.0)

Copy Markdown View Source

Loads host-owned routing and transport settings into the embedded LiveView.

Summary

Functions

Initializes the route prefix, socket path, and transport from the signed session.

Functions

on_mount(atom, params, session, socket)

@spec on_mount(atom(), map(), map(), Phoenix.LiveView.Socket.t()) ::
  {:cont, Phoenix.LiveView.Socket.t()}

Initializes the route prefix, socket path, and transport from the signed session.