Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of Websocket Support in Xray Core for Iranian Users #2105

Closed
masood5400 opened this issue May 17, 2023 · 7 comments
Closed

Lack of Websocket Support in Xray Core for Iranian Users #2105

masood5400 opened this issue May 17, 2023 · 7 comments

Comments

@masood5400
Copy link

Hello,

I hope this message finds you well. I would like to address an issue regarding the Xray Core repository. Firstly, I want to express my appreciation for the fantastic new Reality feature that works seamlessly on TCP and gRPC. It has greatly improved my experience.

However, I would like to bring to your attention the fact that Xray Core currently lacks support for Websocket connections. This limitation poses a challenge for users in Iran who rely on Websocket for certain applications and integrations. I understand that implementing this feature may require significant development effort, but I believe it would greatly enhance the usability of Xray Core for a broader audience.

Could you please provide an estimated timeline for when Websocket support might be available in Xray Core? This information would be extremely helpful for planning purposes and managing user expectations.

Thank you for your attention to this matter. I look forward to your response and the future improvements to Xray Core.

Best regards

@FranzKafkaYu
Copy link
Contributor

Could you please provide an estimated timeline for when Websocket support might be available in Xray Core?

websocket is available in xray core long time ago,plz follow this link and check more details.

@lostsoul6
Copy link

Could you please provide an estimated timeline for when Websocket support might be available in Xray Core?

websocket is available in xray core long time ago,plz follow this link and check more details.

I think he meant websocket with REALITY .

@masood5400
Copy link
Author

I mean websocket with REALITY .

@us254
Copy link

us254 commented May 19, 2023

#1750 (comment)

WebSocket is a protocol that has been designed to be extremely failed, and it has a complex and redundant set of protocol structures and state control of its own, but does not come with multiplexing, but instead has to shake hands one more time each time.

@us254
Copy link

us254 commented May 19, 2023

#1750 (comment)

By the way, let me explain why WSS Proxy is accurately identified:

Fingerprint: Even if the camouflage is opened, the ALPN it issues is always , and at a glance WSS, it actually cannot do what we want to "hide wood in the forest", and will only give away people's heads naked.
Handshake: WS in the WSS layer has to shake hands more than once, and the timing characteristics are very unique. In fact, opening early data can be alleviated, if you have to use WSS, it is recommended ?ed=2048
TLS in TLS: This is a common feature of TLS proxies and requires targeted processing. Multiplexing can alleviate the inner TLS handshake feature, but it aggravates the characteristics of the "cryptographic matryoshka doll", reference XTLS Vision, fixes TLS in TLS, to the star and beyond #1295 The second paragraph, so currently XTLS Vision is the better solution.

So my advice now is: don't use WSS, and it should be listed as deprecated. The CDN has gRPC, and the direct connection has N postures, and there is no need to use WSS.

@us254
Copy link

us254 commented May 19, 2023

#1921 (reply in thread)

Reality, working principle is different. I think it can never use cdn. unless it discards its original function and redesigns it.
If its functions and disadvantages become the same as ws+cdn, then it makes no sense.

@RPRX
Copy link
Member

RPRX commented May 19, 2023

REALITY WebSocket 这个组合没有任何必要,毕竟你不能用它过 CDN,且直连更不必用它。

@RPRX RPRX closed this as not planned Won't fix, can't repro, duplicate, stale May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants