Closed Tyh2001 closed 1 year ago
I had the same problem. Please tell me how to solve it. Thank you !
I had the same problem. Please tell me how to solve it. Thank you !
Are you in a development or production environment? If it is a development environment that requires the use of ws
I had the same problem. Please tell me how to solve it. Thank you !
Are you in a development or production environment? If it is a development environment that requires the use of ws
I had the same problem. Please tell me how to solve it. Thank you !
Are you in a development or production environment? If it is a development environment that requires the use of ws
It is ok in the development environment, but problem occurs when deploying to the production environment.
Describe the bug
WebSocket connection to xxx failed
To Reproduce
Server socket.io server version:
4.6.1
Server Developing using Nestjs
Socket.IO client version:
4.6.1
Server Developing using vue
Expected behavior
The code I am writing now runs normally in the development environment, but the connection failed in the production environment. I hope to connect successfully in the production environment as well
Platform:
Additional context
Currently, I can run normally in the local Windows development environment. However, when both the frontend and backend are deployed to the server, the WebSocket connection fails. I have placed the business code and WebSocket code in the same NestJS backend project because I want to access the data through port 1216, which is currently working fine. However, the WebSocket connection fails. I have configured the server's proxy settings, but it has not resolved the issue. If the information I provided is incomplete, feel free to ask me for more detailed configuration information.