nestjs / nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
https://nestjs.com
MIT License
66.44k stars 7.51k forks source link

Websockets not working on iOS and Safari #8941

Closed ituhin closed 2 years ago

ituhin commented 2 years ago

Is there an existing issue for this?

Current behavior

my websocket setup is something like this - https://docs.nestjs.com/websockets/adapter as described in the nestjs docs using redis and socket.io

websockets works fine everywhere EXCEPT IOS on SAFARI thanks to something called - NSURLSession

also found this similar - https://stackoverflow.com/questions/62352790/websockets-not-working-on-ios-and-safari-ossstatus-error-9837

someone mentioned additionally allowing TLSv1.2 might fix the problem. But I am also reading that, by default, Node JS support all the TLS protocols

So anyone faced this issue or have any suggestion ?

Thanks, any idea will be appreciated

Minimum reproduction code

in the nest js doc sample

Steps to reproduce

No response

Expected behavior

websocket pushes should come to ios safari like other browser or os

Package

Other package

NestJS version

7.0.8

Packages versions

{
"@nestjs/common": "^7.0.8",
"@nestjs/core": "^7.0.8",
"@nestjs/websockets": "^7.4.4"
"socket.io": "^2.3.0",
"socket.io-redis": "^5.4.0",
"express": "~4.17.1",
}

Node.js version

14

In which operating systems have you tested?

Other

No response

micalevisk commented 2 years ago

I guess you should report this on https://github.com/socketio/socket.io instead.


Also, try to not ignore the required fields in the issue form, they are required for some reason.

kamilmysliwiec commented 2 years ago

Please, report this issue here https://github.com/socketio/socket.io instead.