~/talk

Nuts and Bolts of WebSocket

Talkat RigaDevDay 2015 · on Thursday, 2015-01-22· [web-platform, java]
slides:none on file

Shows how WebSocket cuts header overhead (an 11‑byte payload cost 663 bytes over HTTP), uses a 2‑byte framing over a single upgraded TCP connection, and implements Java endpoints with JSR 356 and WildFly/Undertow examples. Live demos: a chat and a collaborative whiteboard using encoders/decoders and JSON/binary snapshots that work end‑to‑end. Benchmarks report ~10x faster than REST for many small messages (10,000 messages test) and vertical scaling to 80,000 concurrent connections. Covers proxies, TLS (WSS), Atmosphere fallbacks, Chrome DevTools and Wireshark debugging.

AI-written summary · about

  1. 0:00Intro
  2. 0:47How WebSocket solves it?
  3. 2:11What is WebSocket?
  4. 3:47Handshake Request
  5. 4:25Handshake Response
  6. 4:46How does it work?
  7. 7:21WebSocket JavaScript API
  8. 8:18Support in Browsers
  9. 9:55Java API for WebSocket
  10. 12:13Annotated Endpoint
  11. 12:52WebSocket Annotations
  12. 13:46@ServerEndpoint attributes
  13. 17:09Chat Server Simplified
  14. 21:14Custom Payloads: Text encoder
  15. 21:31Custom Payloads: Binary decoder
  16. 27:05Client Endpoint
  17. 29:22Securing WebSockets
  18. 32:53Load Balance WebSocket
  19. 36:53Server-Sent Events
  20. 37:53WebSockets and SSE?
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.