Files
t3code/apps
Theo BrowneandClaude Fable 5 c010fc3f3f perf(mobile): negotiate permessage-deflate on iOS websockets
React Native's iOS WebSocket is backed by SocketRocket, which never offers
permessage-deflate, so the server-side negotiation from #4705 only benefited
Android (OkHttp offers it by default). This adds a URLSessionWebSocketTask-
backed Expo module (URLSession offers the extension in its handshake) and
injects it as the Effect Socket constructor on iOS only, with a fallback to
the global WebSocket on Android and on binaries predating the module.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-28 18:12:33 -07:00
..