~/talk

Introduction to ReactPHP and Websockets

Talkat phpday 2025 · 2025-05-15..05-16· [php, web-platform]
slides:none on file

Builds a tiny chat with ReactPHP server, vanilla JavaScript client and WebSockets, using Ratchet for the WebSocket layer and optional Redis for a backlog (server uses LRANGE to send the last 50 messages). Claims nonblocking PHP handles thousands of connections—example notes 8,000 connections as trivial—and shows nginx proxy config, long‑running process management (systemd/forever/docker) and a live demo plus GitHub code; the demo chat works and persistence is optional, Ratchet compatibility with the newest ReactPHP is noted as a caveat.

AI-written summary · about

  1. 0:00ReactPHP and WebSockets intro
  2. 3:15What is ReactPHP
  3. 8:56First WebSocket demo
  4. 12:33Basic chat server
  5. 15:30Real-time chat app
  6. 24:44Adding Redis persistence
  7. 32:29Advanced use cases
  8. 34:17Deploying Ratchet
  9. 37:28COVID real-world example
  10. 39:13Summary & Q&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.