Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8170821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:15:32+00:00 2026-06-06T21:15:32+00:00

I came across this stackoverflow question & then to this article through that question.

  • 0

I came across this stackoverflow question & then to this article through that question.

From what I understand, both encrypted / non-encrypted websocket connections are dependent on the proxy servers sending across the proper header/s.

From the article on unencrypted websocket connections

In case the unencrypted WebSocket traffic flows through a transparent proxy on its way to the WebSocket server, the connection is likely to fail in practice, since the browser does not >issue the CONNECT method in this case. When a proxy server forwards a request to the >(WebSocket) server, it is expected to strip off certain headers, including the Connection >header. Therefore, a well-behaved transparent proxy server will cause the WebSocket >upgrade >handshake to fail almost immediately.
Not all proxy servers conform to the HTTP standard regarding expected proxy behavior. For example, some proxy servers are configured not to remove the Connection: Upgrade header and pass it on to the WebSocket server, which in turn sends the 101 Web Socket Protocol Handshake response. Problems then arise when the client or the server starts sending the first WebSocket frame. Since the frame does not resemble anything the proxy server might expect (such as regular HTTP traffic), some exception will likely occur, unless the proxy server is specifically configured to handle WebSocket traffic.

On encrypted web socket connections

In the case of transparent proxy servers, the browser is unaware of the proxy server, so no HTTP CONNECT method is sent. However, since the wire traffic is encrypted, intermediate transparent proxy servers may simply allow the encrypted traffic through, so there is a much better chance that the WebSocket connection will succeed if Web Sockets Secure is used.

If unencrypted connections are expected to fail & encrypted connections only have a better chance of success, how does it even work?!!

I have most likely got this whole thing wrong, but am curious to understand how this works.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:15:35+00:00Added an answer on June 6, 2026 at 9:15 pm

    In an encrypted connection, proxies doesn’t see the HTTP-content so they simply pass the messages through. But in a non-encrypted connection HTTP-messages (e.g. headers) may be inspected and changed (in some cases) by the Proxies, so in some cases they need to have support for WebSockets as WebSocket-messages doesn’t look like HTTP-messages (e.g. no HTTP-headers).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was looking around for jQuery grid recommendations and came across this question/answers: https://stackoverflow.com/questions/159025/jquery-grid-recommendations
This is my first StackOverflow question so be nice! :-) I recently came across
I came across this situation while migrating our DB from Foxpro to SQL. Below
I came across this in the book: wscanf(L%lf, &variable); where the first parameter is
I came across this RDMS via the advert on stackoverflow. Seems to be in
I recently came across a website that disabled text selection , preventing anyone from
Upon searching StackOverflow for restoring scrollbar position using JavaScript, I came across this suggestion
I recently came across the Ruby EOB / -EOB construct within this context (from
I came across this bit of vba code posted in another SO question. Is
I was studying cnprog (a django clone of stackoverflow) and came across this code:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.