Introduction to WebSockets
summary
Demonstrates a working Bitcoin RT demo that replaces long polling with a single persistent WebSocket connection, sending compact JSON frames (trade amount, exchange) over an HTTP 101 upgrade; shows node + SockJS fallback, D3.js for visualization and MongoDB for storage, and Java options: Tomcat’s WebSocket servlet, Atmosphere for portable fallbacks and Vert.x. Highlights real issues: ~40% IE share worldwide (≈90% in China) and proxy/keep‑alive problems, so native WebSockets work but fallbacks and heartbeat protocols remain essential.
AI-written summary · about
chapters (12)
- 0:00Introduction to WebSockets
- 1:49Understanding WebSockets
- 7:17Bitcoin Real-time demo
- 14:51Why not use WebSockets?
- 17:54Challenges in the wild
- 27:54Maintaining connection
- 32:28History and protocol specs
- 50:33WebSocket libraries and fallback
- 58:16Java WebSocket support
- 1:04:56JSR 356 Java API
- 1:07:15Using Atmosphere for Java
- 1:12:32Conclusion and Q&A








