-
I have a simple Socket.io server for real time chat messages running as part of docker compose:
it works locally (in expo go and in development build, both on ios and android) and it works on the server if I'm using android device, but it doesn't work on IOS (confirmed on Iphone 8, XR and 12): it's deployed behind traefik which handles ssl certs and then request goes to my app nginx reverse proxy with the following config:
And so I see in the access logs these lines for every connection attemts from IOS, as you can see response code is 301 (permanent redirect): While for android they are looking like this, response code is 101 and it works just fine: What could cause such different behavior? Where do I even start for debugging it? Could it be bug in SocketIO client library? Or is it issue on behalf of "fetch" library on IOS/swift side? What can I try to debug it better? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
actually issue was indeed within these lines:
maybe first time when i commented them out i forgot to restart nginx or something, I just double-checked - it fixed the issue. |
Beta Was this translation helpful? Give feedback.
actually issue was indeed within these lines:
maybe first time when i commented them out i forgot to restart nginx or something, I just double-checked - it fixed the issue.