Files
t3code/apps/mobile/modules/t3-websocket/ios/T3WebSocket.podspec
T
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

20 lines
656 B
Ruby

Pod::Spec.new do |s|
s.name = 'T3WebSocket'
s.version = '1.0.0'
s.summary = 'URLSession-backed WebSocket for T3 Code mobile.'
s.description = 'WebSocket client backed by URLSessionWebSocketTask so iOS negotiates permessage-deflate, which SocketRocket (React Native default) cannot.'
s.author = 'T3 Tools'
s.homepage = 'https://t3tools.com'
s.platforms = {
:ios => '18.0',
}
s.source = { :path => '.' }
s.static_framework = true
s.dependency 'ExpoModulesCore'
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
}
s.source_files = '**/*.{h,m,mm,swift,hpp,cpp}'
end