# Request: LiveView Timer Example

**URL:** <https://forum.elixirforum.com/t/request-liveview-timer-example/53194>\
**Category:** Questions\
**Tags:** phoenix, socket, liveview\
**Created:** [January 15, 2023, 5:48pm UTC](https://forum.elixirforum.com/t/request-liveview-timer-example/53194 "2023-01-15T17:48:03Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Sebb](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sebb/32/21818_2.png) [@Sebb](https://forum.elixirforum.com/u/Sebb)\
**Post date:** [January 16, 2023, 5:53pm UTC](https://forum.elixirforum.com/t/request-liveview-timer-example/53194/8 "2023-01-16T17:53:38Z")

</div>

this minimal example works for me, ie getting these warnings of unhandled msgs and responding to `GET` with “test”.

```elixir
debug] warning: undefined handle_info in ToolPocWeb.ToolLive. Unhandled message: :tick 

```

```elixir
defmodule TestWeb.TestLive do
  use TestWeb, :live_view

  def mount(_, _, socket) do
    if connected?(socket), do: :timer.send_interval(1000, self(), :tick)
    {:ok, socket}
  end

  def render(assigns) do
    ~H"""
    test
    """
  end
end

```

---

_[View the full topic](https://forum.elixirforum.com/t/request-liveview-timer-example/53194)._
