From 18ec4dab87bff1aa11488db7d12fa7bfc576b308 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Mon, 30 May 2011 21:57:56 +0100 Subject: [PATCH] Let client Socket.IO set the options on its own, I think this solves some proxy problems --- static/js/pad2.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/static/js/pad2.js b/static/js/pad2.js index b32bd5991..236b3d132 100644 --- a/static/js/pad2.js +++ b/static/js/pad2.js @@ -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(){