~/talk

Working with WebSockets in Angular apps

Talkat BuzzJS 3.1 2018 · 2018-06-14..06-15· [angular, web-platform]
slides:none on file

Explains how an Angular app connects to a Node.js WebSocket server using the npm ws package and TypeScript, shows code for wrapping the browser WebSocket in an Angular service and for using rxjs’s WebSocketSubject, cites a quoted latency drop (≈150ms to ≈50ms) and two-byte frame overhead, and demos an online-auction app where bids propagate instantly between browsers. Shows server handshake (HTTP 101 upgrade), ng serve build steps, and claims scalable single-socket loads (tens of thousands) working end to end.

AI-written summary · about

  1. 0:00Introduction to WebSockets
  2. 1:35Benefits of WebSockets
  3. 4:47Implementing a simple server
  4. 8:05Browser and server interaction
  5. 12:25Angular WebSocket service
  6. 24:16Using RxJS WebSocket subject
  7. 29:01Auction app demonstration
  8. 35:01Messaging systems and wrap-up
~/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.