mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
socket.io: Delete ignored resource
option
I couldn't find any reference to a `resource` option in either the socket.io-client documentation or its source code.
This commit is contained in:
parent
7949219179
commit
7eb0f996c3
4 changed files with 3 additions and 10 deletions
|
@ -223,13 +223,10 @@ const handshake = () => {
|
|||
const port = loc.port === '' ? (loc.protocol === 'https:' ? 443 : 80) : loc.port;
|
||||
// create the url
|
||||
const url = `${loc.protocol}//${loc.hostname}:${port}/`;
|
||||
// find out in which subfolder we are
|
||||
const resource = `${exports.baseURL.substring(1)}socket.io`;
|
||||
// connect
|
||||
socket = pad.socket = io.connect(url, {
|
||||
// Allow deployers to host Etherpad on a non-root path
|
||||
path: `${exports.baseURL}socket.io`,
|
||||
resource,
|
||||
reconnectionAttempts: 5,
|
||||
reconnection: true,
|
||||
reconnectionDelay: 1000,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue