A deep dive into RxJS WebSocket Subject
summary
Demonstrates that the RxJS WebSocketSubject is a usable, browser-native wrapper that supports buffering of outgoing messages, multiplexing of logical streams, binary payloads, and custom serialization; reconnection is not automatic but is implemented with Rx retry logic (demo reconnects every ~2s to a Node server); architecture uses a single gateway service to avoid multiple socket instances; demo Angular 9 dashboard shows live updates and successful reconnection behavior.
AI-written summary · about
chapters (21)
- 0:00Intro
- 1:49Talk
- 5:10Background
- 7:25WebSocket Factory
- 10:53Hello World Example
- 14:42Handling Errors
- 16:07Buffering
- 21:10Types of messages
- 22:01Authentication
- 22:49Reconnection
- 24:02Architecture
- 24:39Code
- 29:49multiplexing
- 31:56multiplex methods
- 34:36summary
- 35:45performance tips
- 36:35further reading
- 37:12Advantages of RxJS
- 39:38RxJS multiplexing
- 41:16RxJS change detection
- 42:40Security concerns
related talks
41mDeep Dive into RxJS WebSocket Subject
22mMastering the Subject: Communication Options in RxJS
23mRxJS, Angular, and WebSockets - The Spy Life
40mWorking with WebSockets in Angular apps
20mReactive Programming with RxJS A Beginner’s Perspective
32mI'm Watching You: A Tale of Observables
27mEmbrace Reactive Programming in React and Vue with RxJS
41mRxJS Advanced Patterns Learn how to manage heavily dynamic Angular apps
