~/talk

Make your Next.js app realtime and collaborative

Talkat Next.js Conf 2023 · on Thursday, 2023-10-26· [frontend-architecture, web-platform]
slides:none on file

Builds a realtime polling feature for Next.js using PartyKit and WebSockets, demonstrates running `npm partykit init` to add PartyKit and PartySocket, and shows per-poll in‑memory rooms keyed by poll ID so each new ID spins up a server instance. Uses a client React hook to update votes live, sets revalidate: 0 to avoid caching, increments votes server‑side and broadcasts them, and deploys the working demo to hundreds of edge locations.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08Why realtime
  3. 2:57Lets build
  4. 4:09Setting up the server
  5. 4:59Sending the form
  6. 5:46Rendering the poll
  7. 6:36Using websockets
  8. 7:43Voting
~/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.