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

pull/35/head
Peter 'Pita' Martischka 2011-05-30 21:57:56 +01:00
parent c4325a050f
commit 18ec4dab87
1 changed files with 1 additions and 5 deletions

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(){