~/talk

Do you really need WebSockets?

Talkat WebCamp Zagreb 2018 · 2018-10-05..10-06· [web-platform, nodejs]
links:none on file
slides:none on file

WebSockets provide true full-duplex communication by starting as HTTP then performing an HTTP Upgrade 101 to the WebSocket protocol (introduced 2011 for Google Wave), which is ideal for bidirectional needs like voice, video or games. Alternatives: Server-Sent Events (SSE) are pure HTTP, auto-reconnect, need a polyfill for some Microsoft browsers and suffer the browser six-connection limit but simplify server logic; long polling is plain HTTP, uses less connection pool overhead and scales to many clients but costs more bandwidth. Pick by implementation cost and whether clients must send freely to the server.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:04Problem with half-duplex HTTP
  3. 4:37What are WebSockets
  4. 6:48WebSockets in browsers
  5. 7:51Trade-offs of using WebSockets
  6. 8:54Server-Sent Events as alternative
  7. 13:07Long polling explained
  8. 15:35Comparison and conclusion
  9. 17:22Q&A session
~/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.