Open ouarrtaha opened 1 year ago
Update:
it worked with
transportOptions: {
polling: {
extraHeaders: {
'Cookie': cookie,
},
},
}
Hi! Thanks for the report :+1:
The only difference between extraHeaders: { ... }
and transportOptions: { polling: { extraHeaders }}}
is that, in the first case, the extraHeaders
is also used when establishing the WebSocket connection.
Which React Native should support I think.
Reference: https://reactnative.dev/docs/network#websocket-support
Which version of React Native are you using?
i'm using react native 0.72.6
@ouarrtaha I was not able to reproduce. Were you able to find the culprit? Is it fixed in newer React native versions?
I need to pass a cookie, for the ingress session affinity, in order to maintain connection in multi pods, so i set the extraHeaders:
when running the app in debug (in simulator or device) it works as expected, but after releasing ios app in testflight and testing, it crashes,
To Reproduce
Socket.IO server version:
4.4.0
Server
Socket.IO client version:
4.7.2
Client
Expected behavior Connect without crash and maintain connection
Platform: