mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
Merge pull request #2370 from simong/shardable-socket-io
Don't hardcode /socket.io
This commit is contained in:
commit
e57c8fa763
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue