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

118
Views
Cloudfront with Websocket connection

I have been reading over the documentation here on connection a websocket service with a client through a cloudfront distribution but I am unable to understand where the upgrade to the websocket protocol will occur. Will the upgrade need to be handled by the server or will the cloudfront distribution handle changing the protocol to wss and respond with the connection?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The answer to my problem was a simple change to the Cloudfront Distribution.These headers needed be added so that my server (using express/express-ws) would receive the http request with the correct headers to validate the session and return with the upgraded protocol response for the client. (This was out of the box with express-ws and rxjs). I can post a coded example if needed.

  1. Sec-WebSocket-Key
  2. Sec-WebSocket-Version
  3. Sec-WebSocket-Protocol
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!