Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

212
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!