Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

214
Visualizações
Desktop Safari websockets hangs on connection. All others (including iOS) work

My websocket connection works:

  • When testing on localhost on Desktop Chrome, Desktop Safari, and iOS
  • When testing on production on Desktop Chrome and iOS.

It DOES NOT work:

  • When testing on production on Desktop Safari

There are no console errors in the browser. I can see the websocket is created, but it never fires "open" event on Desktop Safari. On the server side, the connection comes through fine everywhere other than from Desktop Safari, where I don't see anything come in.

The websocket is on the exact domain as the origin, and both are using secure connection (https/wss)

There are a lot of moving parts on production (e.g. load balancer). I've looked at and configured things like "stickiness" and TLS versions on each layer in production.

Again, it works most places.

I'm thinking there must be something like TLS, CORS, etc that I'm not fulling understanding that is causing the breakdown.

This is what happens on iOS (and about the same in Chrome desktop, etc):

enter image description here

This is what happens in Desktop Safari on Mac:

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Well. After many hours of spinning my wheels I solved it:

There is a setting in AWS Load Balancer attributes called "Client port preservation". Once I checked this, websockets started to flow from Desktop Safari:

enter image description here

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda