Allow for shardable Etherpad

pull/2370/head
Simon Gaeremynck 2014-11-25 18:42:40 +00:00
parent 6080de9d79
commit 45c1ad078b
1 changed files with 3 additions and 1 deletions

View File

@ -170,7 +170,9 @@ function handshake()
var resource = exports.baseURL.substring(1) + "socket.io";
//connect
socket = pad.socket = io.connect(url, {
resource: resource,
// Allow deployers to host Etherpad on a non-root path
'path': exports.baseURL + "socket.io",
'resource': resource,
'max reconnection attempts': 3,
'sync disconnect on unload' : false
});