Closed mrbpp closed 9 months ago
to wss you need ssl certs provided for ngrok otherwise the connection cannot be upgraded
Now I am using localtunel and everything works fine, when I will deploy my App I will add certs as you say and https instead of http, also 'secure: true,' to cors options.
I appreciate your help!
Hello everyone,
before asking this question i tried everything but i still hit a dead end. So i need your help...
I have a React app (client-side) and Express (server-side). I am trying to make a connection using Socket.io.
I do not have Errors in the browser console.
In the Network Tab (ALL), when i clicked on /socket... I saw:
In the Network Tab (WS), when I clicked on /socket... I saw only one sockjs-node, then when I clicked on sockjs-node:
What I think is wrong is the fact that I do not have SSL certs for Ngrok (Let's Encrypt). I also think that I need to add two extra lines in the client/src/App.js file, but I am not sure if I really need to:
IF YOU NEED ANY ADDITIONAL INFORMATION, PLEASE LET ME KNOW, AND I WILL GET BACK TO YOU ASAP.