Let client Socket.IO set the options on its own, I think this solves some proxy problems
parent
c4325a050f
commit
18ec4dab87
|
@ -60,11 +60,7 @@ function randomString() {
|
||||||
|
|
||||||
function handshake()
|
function handshake()
|
||||||
{
|
{
|
||||||
var host = window.location.hostname;
|
socket = new io.Socket();
|
||||||
var options = {secure: window.location.protocol == 'https:',
|
|
||||||
port: window.location.port};
|
|
||||||
|
|
||||||
socket = new io.Socket(host, options);
|
|
||||||
socket.connect();
|
socket.connect();
|
||||||
|
|
||||||
socket.on('connect', function(){
|
socket.on('connect', function(){
|
||||||
|
|
Loading…
Reference in New Issue