defmodule LivebookWeb.JSViewComponent do use LivebookWeb, :live_component @impl true def update(assigns, socket) do {:ok, socket |> assign(assigns) |> assign_new(:timeout_message, fn -> "Not available" end)} end @impl true def render(assigns) do ~H"""
""" end defp session_token(pid) do Phoenix.Token.sign(LivebookWeb.Endpoint, "js view", %{pid: pid}) end end