failed: WebSocket is closed before the connection is established. #51
Unanswered
ReezeMoodaley
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm reaching out for assistance with a WebSocket connection issue that surfaced after some recent changes to my project's setup. Here are the details:
Old Setup:
An Express.js backend serving a React frontend.
Both frontend and backend were hosted on the same port (5000).
Requests to the backend were proxied within the same system.
New Setup:
The backend now runs on port 5000 and the frontend on port 5002.
WSS and HTTPS have been enabled server-side with an SSL certificate.
The rest of the system is functioning as expected.
Issue:
Despite no changes to the WebSocket setup in my React component, the connection fails with the error:
This occurs in the new configuration, while the old setup still works without issues when tested from a backup.
Additional Information:
I have recently configured my Websockify implementation to run as a Windows service.
SSL certificates (cert and key files) are included in the service setup.
This service functions correctly with the old system.
Could you please provide some guidance on what might be causing this WebSocket connection issue and how to resolve it? If there is any additional information that would be helpful, or any common pitfalls in such a reconfiguration that I should check, let me know, and I will provide further details.
Thank you for your time and assistance!
Beta Was this translation helpful? Give feedback.
All reactions