~/talk

Beyond Liveview: Real Time Features With Liveview

Talkat The Big Elixir 2019 · 2019-11-07..11-08· [elixir-and-erlang, web-platform]
slides:none on file

Demonstrates that a LiveView process plus Phoenix libraries builds a full chat without custom JS by using Phoenix PubSub (PG2) for broadcasts, Presence.track/list to maintain live user lists, and LiveView hooks updated callback to run a tiny scroll adjustment. Mount subscribes to chat:ID, handle_event broadcasts new messages, handle_info consumes broadcasts to assign and re-render, presence diffs update user lists, and a few lines of client hook code set scrollTop. Works in practice but requires PubSub port/config for distributed nodes and under 100 lines of LiveView code.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08About the speaker
  3. 1:49Roadmap and live view basics
  4. 4:57Live view under the hood
  5. 8:28Extending live view with pub/sub
  6. 9:32Message broadcasting with pub/sub
  7. 15:52User tracking with presence
  8. 25:58Live view and JavaScript interop
  9. 35:14Recap and summary
  10. 36:32Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.