fixed socket.io path

This commit is contained in:
Quirin 2014-11-19 18:18:07 +01:00 committed by qh
parent 7b9fd81284
commit 26ec4684b5

View file

@ -168,10 +168,10 @@ function handshake()
//create the url
var url = loc.protocol + "//" + loc.hostname + ":" + port + "/";
//find out in which subfolder we are
var resource = exports.baseURL.substring(1) + "socket.io";
var path = exports.baseURL + "socket.io";
//connect
socket = pad.socket = io.connect(url, {
resource: resource,
path: path,
'max reconnection attempts': 3,
'sync disconnect on unload' : false
});