express - io.connect adding "3000" to url -
in javascript i'm doing:
var socket = io.connect('https://socket.xxxxxxxxxxx.net?token=socket1'); and url in "network" tab of chrome reads as
"https://socket.xxxxxxxxx.net:3000/socket.io/1/?token=socket1&t=1394492903833"
and err_connection_timed_out.
i think because it's appending port 300 url, when, on server, there nothing running on port 3000.
my environment node.js server running on local machine, , serving files through express, if matters
the fix explicitly add correct port, in case 443, connection url.
like so
https://socket.xxxxxxxxx.net:443/socket.io/1/?token=socket1&t=1394492903833
Comments
Post a Comment