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()
|
||||
{
|
||||
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(){
|
||||
|
|
Loading…
Reference in New Issue