Let client Socket.IO set the options on its own, I think this solves some proxy problems

This commit is contained in:
Peter 'Pita' Martischka 2011-05-30 21:57:56 +01:00
parent c4325a050f
commit 18ec4dab87

View file

@ -60,11 +60,7 @@ function randomString() {
function handshake()
{
var host = window.location.hostname;
var options = {secure: window.location.protocol == 'https:',
port: window.location.port};
socket = new io.Socket(host, options);
socket = new io.Socket();
socket.connect();
socket.on('connect', function(){