My socket.io server is running and listening to port 6060.
Now, I added to my domain an SSL certificate in order to serve my website through https protocol.
If i'm trying to access the nodejs/socket.io server through http://mydomain.com:6060 i'm getting the "Welcome to socket.io." message, but when i'm doing it with https://mydomain.com:6060 it's not work..
Is it posible to connect to my socket.io server (listening to port 6060) with ssl?
What are my options in such a case?
Thanks
Try this:
var socket = io.connect('https://mysecuresite.com',{secure: true, port:6060});