~/talk

WebSockets: Adding Real-Time Data to Your App with SwiftNIO and Network Framework

Talkat 360|iDev 2019 · 2019-08-25..08-28· [nodejs, web-platform]
name:Jon Bauer
links:none on file
slides:none on file

WebSockets become native on iOS 13 with URLSession WebSocketTask (Network Framework under the hood); a demo builds a Vapor + SwiftNIO server that streams fake stock quotes and an iOS client that receives them. Initial server loop blocks threads and memory grows; replacing the loop with event-loop futures and workers fixes bi‑directional messaging and stabilizes memory, proving a SwiftNIO-based server plus native client works reliably over WS/WSs.

AI-written summary · about

  1. 0:00Real-time data with WebSockets
  2. 1:45HTTP protocols and real-time hacks
  3. 9:56Polling, long polling, and SSE
  4. 12:22WebSocket protocol basics
  5. 16:46WebSocket handshake and security
  6. 17:06SwiftNIO for networking
  7. 23:06Server-side Swift with Vapor/NIO
  8. 26:01WebSocket server with Vapor
  9. 29:40Network Framework for clients
  10. 32:09Real-time stock ticker app
  11. 37:12Client-server WebSocket connection
  12. 39:00Fixing blocking in WebSocket servers
  13. 41:50Threading with SwiftNIO workers
  14. 45:01Resources 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.