socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

https ssl

Open THEDARKK opened this issue 11 years ago • 8 comments

Hello, my market program, but in the following condition: When I put https, the program anymore how to solve this problem?

Thank you to you

// socket.io var io = require('socket.io').listen(8303);

THEDARKK avatar Jul 18 '15 22:07 THEDARKK

make sure that the client side script also has https. i.e socket = io.connect("https://......:8303");

sasankh avatar Jul 19 '15 01:07 sasankh

Also, make sure that your 'socket.io.js' is loading in the client side. if you are pulling from your server using 'http' change to 'https'. These are the only two things that came in my mind right now.

sasankh avatar Jul 19 '15 01:07 sasankh

Client script : var socketIO = io(':8303');

THEDARKK avatar Jul 19 '15 08:07 THEDARKK

so you tried : var socketIO = io('https://.....:8303');

sasankh avatar Jul 20 '15 02:07 sasankh

thank you to you and hand modifications servers?


// socket.io var io = require('socket.io').listen(8303); ///// var ws = new WebSocketServer({port: 8303});

THEDARKK avatar Jul 20 '15 10:07 THEDARKK

I think this thread belongs on a forum or maybe stack overflow? After doing some basic research with a search engine and checking the (I'll admit very thin docs).

peteruithoven avatar Jul 20 '15 11:07 peteruithoven

Try this but im not sure if this works /:

// Client side
 var socket_1 = io.connect({secure: true,  port: 8088});
 var socket_2 = io.connect(location.origin,{secure:true, port: 8088})

dsalcedo avatar Jul 27 '15 20:07 dsalcedo

That issue was closed automatically. Please check if your issue is fixed with the latest release, and reopen if needed (with a fiddle reproducing the issue if possible).

darrachequesne avatar Jan 12 '17 15:01 darrachequesne