~/talk

We need to talk about Websockets

Talkat UIKonf 2020 · 2020-05-17..05-20· [networking, swift]
slides:none on file

Explains why WebSockets (RFC6455) cut latency by keeping a persistent TLS-encrypted TCP connection instead of repeating HTTP headers and cookies, and shows concrete tooling: URLSession WebSocketTask (iOS 13+), Starscream, and SwiftNIO plus Network.framework and Vapor for servers. Demo compares Starscream vs URLSession usage and highlights that receive must be re-called, ping/pong heartbeats and proper close codes are required, and that pre‑iOS13 CFNetwork is flaky; sample app and proxy debugging (Charles) are open sourced.

AI-written summary · about

  1. 0:00Introduction and speaker
  2. 1:15What are WebSockets
  3. 3:28Why WebSockets matter
  4. 5:17WebSocket protocol basics
  5. 8:11WebSocket connection process
  6. 10:17WebSocket message framing
  7. 12:09Ping pong and connection health
  8. 13:36WebSocket libraries overview
  9. 14:21Starscream library demo
  10. 17:22Apple's Network framework
  11. 19:28URLSession WebSocketTask
  12. 21:44Server-side WebSocket options
  13. 23:51Vapor WebSocket implementation
  14. 26:07GraphQL subscriptions
  15. 29:28Xcode on iPhones concept
  16. 30:18Live WebSocket demo
  17. 34:51Implementation recap
  18. 35:36Debugging WebSocket tools
  19. 36:50Pros and cons summary
  20. 38:21Resources and closing
~/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.