Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Client side start infinite request to the server in nodejs.
After starting server
And when user connect through socket
socket = io("http://hostname:4000");
Client side didn’t seems to be stable, it start doing infinite request and after every request socket id changed.
And this cause many problem, But this type of problem doesn’t occur when i test on local server.
Request type is cross origin request.
Please tell me how i can resolve this problem.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×