Vue Real-Time Apps
summary
Covers concrete recipes: use Server-Sent Events via createEventStream (example: a 10-element snapshot then per‑second updates), use VueUse composables like useEventSource and useWebSocket, and run WebSockets from Nats with open/message hooks and publish/subscribe semantics. Shows live demos: stock ticker, reaction stream, chat and collaborative drawing, and a WebRTC flow simplified with PeerJS. Mentions realtime DBs (Firebase, Supabase) and CRDTs (Yjs, Automerge, Jazz) for offline sync.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 0:42Real-time features overview
- 3:12Polling limitations explained
- 5:20Server-sent events basics
- 9:39SSE demo walkthrough
- 12:12WebSockets introduction
- 15:07WebSocket chat demo
- 17:34WebSocket reconnection tips
- 17:56Real-time databases
- 20:05WebRTC fundamentals
- 22:13WebRTC connection setup
- 25:29PeerJS simplification
- 27:55WebRTC demo with prize
- 29:20Local-first collaboration
- 31:48Resources and closing








