Socket to me
summary
Demonstrates building real-time apps with the WebSockets API and Socket.IO on Node: live code shows io.sockets.on connection handlers, client io.connect, and JSON.stringify limits (DOM events crash). Compares alternatives (Comet, SSE, WebRTC), highlights subprotocols (WAMP, STOMP), and Socket.IO features like automatic reconnects, heartbeats, volatile messages and namespaces. Ships two demos — a multiuser canvas and a tiny market — both run but bots flood the server, prompting server-side throttling and validation as the necessary fix.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:04What are WebSockets?
- 2:26Web application metaphors
- 4:22Communication techniques
- 7:05Managing application state
- 10:10Choosing the right tool
- 12:32Protocols and support
- 15:03Why choose Socket.io?
- 17:55Implementation basics
- 21:42Live demo and interaction
- 33:51Logic and security
- 37:17Final demos and conclusion
related talks
26mSocket.IO - WebSockets for everyone
29mWebSockets Bring Light at the End of the Tunnel
05mSocket.IO in a Chess Realtime Multiplayer Web Application
01h 28mIntroduction to WebSockets
33mFun With Websockets
27mA Practical Introduction to WebSockets
25mTaming Client-Server Communication
41mModel-View-Websockets
