Transforming WebSockets
summary
Browsers and intermediaries still break WebSockets in specific ways: Safari on macOS crashes with auto proxy, iOS can crash when writing to a closed socket, Firefox ghost connections persist until the browser quits, Escape can close connections, AT&T 4G and many load balancers block them, and fire scanners interfere. The talk shows Primus, a wrapper that swaps transports with Primus switches transports with one line, ships patches for broken clients, exposes middleware and plugins (about 50), supports JSON/EJSON and a node client, and implements randomized exponential backoff for safe reconnects.
AI-written summary · about
